]> git.stg.codes - stg.git/blobdiff - projects/sgconf_xml/build
Minor changes for Darwin.
[stg.git] / projects / sgconf_xml / build
index a1084554f5ec8bf31be5eebc82791e61f3f6f575..5aee9de3c9e0dc7f8fdd1f07e9e3ec3a90397f07 100755 (executable)
@@ -83,13 +83,20 @@ else
     if [ "$OS" = "bsd" ]
     then
         DEFS="$DEFS -DFREE_BSD"
     if [ "$OS" = "bsd" ]
     then
         DEFS="$DEFS -DFREE_BSD"
+        LIB_THREAD=-lc_r
     else
     else
-        DEFS="$DEFS -DFREE_BSD5"
         if [ "$OS" = "bsd7" ]
         then
         if [ "$OS" = "bsd7" ]
         then
+            DEFS="$DEFS -DFREE_BSD5"
             LIB_THREAD=-lpthread
         else
             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
         fi
     fi
 fi