Savannah bug #37179: Use alternate shared library syntax for MacOS.
authorPaul Smith <psmith@gnu.org>
Sun, 9 Sep 2012 20:14:09 +0000 (20:14 +0000)
committerPaul Smith <psmith@gnu.org>
Sun, 9 Sep 2012 20:14:09 +0000 (20:14 +0000)
ChangeLog
default.c

index ffe1a5d368e43396337831b4c17a591c16c7bafc..fefd28501039051208b543eaa56562f8f63016b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-09-09  Paul Smith  <psmith@gnu.org>
 
+       * default.c (default_variables): Use a correct default LIBPPATERNS
+       for MacOS.  Fixes Savannah bug #37197.
+
        * read.c (record_files): Reset the default macro values if .POSIX
        is set.  Fixes Savannah bug #37069.
        (parse_file_seq): Break out of an infinite loop if we're not
index 9747b3350c81ae58d49d79d11d4cb6ec4db2fd25..27718099b1d1f1b029e60a69fdb1ecaf1ff209e1 100644 (file)
--- a/default.c
+++ b/default.c
@@ -514,15 +514,15 @@ static const char *default_variables[] =
     "SCCS_OUTPUT_OPTION", "-G$@",
 #endif
 
-#ifdef _AMIGA
+#if defined(_AMIGA)
     ".LIBPATTERNS", "%.lib",
-#else
-#ifdef __MSDOS__
+#elif defined(__MSDOS__)
     ".LIBPATTERNS", "lib%.a $(DJDIR)/lib/lib%.a",
+#elif defined(__APPLE__)
+    ".LIBPATTERNS", "lib%.dylib lib%.a",
 #else
     ".LIBPATTERNS", "lib%.so lib%.a",
 #endif
-#endif
 
 #endif /* !VMS */
     0, 0