]> mj.ucw.cz Git - libucw.git/commitdiff
enable dynamic linking on Darwin
authorRobert Spalek <robert@ucw.cz>
Sat, 28 Oct 2006 01:20:44 +0000 (18:20 -0700)
committerRobert Spalek <robert@ucw.cz>
Sat, 28 Oct 2006 01:20:44 +0000 (18:20 -0700)
lib/autoconf.cfg

index a6430e72c6ba5841ff4961efe7edc40ed5ee9a47..2cbb1efaf5fa1e88221b4652f75ed7b9757a988e 100644 (file)
@@ -180,7 +180,11 @@ Set("LIBS" => "");
 
 # Extra flags for compiling and linking shared libraries
 Set("CSHARED" => '-fPIC');
-Set("LSHARED" => '-shared -Wl,-soname,lib/$(@F)');
+if (IsSet("CONFIG_DARWIN")) {
+       Set("LSHARED" => '-dynamiclib -install_name lib/$(@F) -undefined dynamic_lookup');
+} else {
+       Set("LSHARED" => '-shared -Wl,-soname,lib/$(@F)');
+}
 
 # Extra switches depending on GCC version:
 if ($gccver == 3000) {