]> git.stg.codes - stg.git/commitdiff
Merge branch 'stg-2.409' into stg-2.409-radius
authorMaxim Mamontov <madf@madf.info>
Mon, 19 Mar 2018 08:52:47 +0000 (10:52 +0200)
committerMaxim Mamontov <madf@madf.info>
Mon, 19 Mar 2018 08:52:47 +0000 (10:52 +0200)
projects/sgconf_xml/Makefile
projects/sgconf_xml/build
projects/sgconv/build

index a7058b896cc497242c200a27375c000dee07bf6f..e3eaa05d2fb92f100ade943cc99d611435bf444c 100644 (file)
@@ -40,7 +40,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 install uninstall install-bin install-data uninstall-bin uninstall-data
 all: libs $(PROG) ../../Makefile.conf
index a1084554f5ec8bf31be5eebc82791e61f3f6f575..5aee9de3c9e0dc7f8fdd1f07e9e3ec3a90397f07 100755 (executable)
@@ -83,13 +83,20 @@ else
     if [ "$OS" = "bsd" ]
     then
         DEFS="$DEFS -DFREE_BSD"
+        LIB_THREAD=-lc_r
     else
-        DEFS="$DEFS -DFREE_BSD5"
         if [ "$OS" = "bsd7" ]
         then
+            DEFS="$DEFS -DFREE_BSD5"
             LIB_THREAD=-lpthread
         else
-            LIB_THREAD=-lc_r
+            if [ "$OS" == "darwin" ]
+            then
+                DEFS="$DEFS -DDARWIN"
+                LIB_THREAD=-lpthread
+            else
+                LIB_THREAD=-lc_r
+            fi
         fi
     fi
 fi
index 5fa0f23c6c92830099a9485c5873c4c3fefadae0..676bf74ef4614fb3ce2b20767e27c2012c27ea63 100755 (executable)
@@ -72,7 +72,6 @@ printf "       Building sgconv for $sys $release\n"
 printf "#############################################################################\n"
 
 STG_LIBS="logger.lib
-          locker.lib
           crypto.lib
           common.lib
           conffiles.lib