]> mj.ucw.cz Git - libucw.git/blobdiff - lib/autoconf.cfg
Use gettid() on Linux.
[libucw.git] / 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) {