]> git.stg.codes - stg.git/blobdiff - projects/sgauthstress/Makefile
Fix build on Darwin.
[stg.git] / projects / sgauthstress / Makefile
index 74c09b62a08b711bde41f022edb24e9f13582fd8..4415220f1e821aa258f2f8db3e5a24cd3125fdb6 100644 (file)
@@ -30,7 +30,12 @@ OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
 
 CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
 CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
-LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
+
+ifneq ($(OS),darwin)
+LDFLAGS += -Wl,-E
+endif
+
+LDFLAGS += $(STGLIBS_LIBS)
 
 .PHONY: all clean distclean libs plugins
 all: libs plugins $(PROG) ../../Makefile.conf