]> git.stg.codes - stg.git/blobdiff - projects/sgconv/Makefile
Allowed to build on Darwin.
[stg.git] / projects / sgconv / Makefile
index 794114c779b3bf450ecf758721a6f80222c1a5f0..ceea22b76e6ecf0b7dbe75556dfdd94d96721f73 100644 (file)
@@ -32,7 +32,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 install uninstall
 all: libs plugins $(PROG) ../../Makefile.conf