X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/611e9aeab755acbfbccd42006c2b769d5843cbe5..ddd28cc3e77e1c5dcff0a57d6d61a949aa9ecb3e:/projects/sgconv/Makefile?ds=sidebyside

diff --git a/projects/sgconv/Makefile b/projects/sgconv/Makefile
index 04c00cc4..ceea22b7 100644
--- a/projects/sgconv/Makefile
+++ b/projects/sgconv/Makefile
@@ -4,7 +4,7 @@
 
 include ../../Makefile.conf
 
-PROG = convertor
+PROG = sgconv
 
 SRCS = ./main.cpp \
        ./settings_impl.cpp
@@ -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