X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/159f2ebb266a883d5bc34693f36db2688691e03c..a89444b19b0ceb41db8db6cfa4e6fa77e26d7759:/projects/stargazer/Makefile diff --git a/projects/stargazer/Makefile b/projects/stargazer/Makefile index 9dfc0b51..aa2b6f90 100644 --- a/projects/stargazer/Makefile +++ b/projects/stargazer/Makefile @@ -47,7 +47,12 @@ OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS)))) CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS) CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS) + +ifneq ($(OS),darwin) LDFLAGS += -Wl,-E $(STGLIBS_LIBS) +endif + +LDFLAGS += $(STGLIBS_LIBS) .PHONY: all clean distclean libs plugins install uninstall install-bin install-data all: libs plugins $(PROG)