Explorar o código

Add soname on FreeBSD (#301)

lbartoletti %!s(int64=5) %!d(string=hai) anos
pai
achega
8299d386b1
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      aclocal.m4
  2. 1 0
      configure

+ 1 - 0
aclocal.m4

@@ -561,6 +561,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
 	    SHLIB_CFLAGS="-fPIC"
 	    #SHLIB_LD="ld -Bshareable -x"
 	    SHLIB_LD="${CC} -shared"
+            SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$[@])"
 	    SHLIB_SUFFIX=".so"
 	    LDFLAGS="-export-dynamic"
 	    #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'

+ 1 - 0
configure

@@ -1589,6 +1589,7 @@ EOF
 	    # FreeBSD 3.* and greater have ELF.
 	    SHLIB_CFLAGS="-fPIC"
 	    #SHLIB_LD="ld -Bshareable -x"
+            SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
 	    SHLIB_LD="${CC} -shared"
 	    SHLIB_SUFFIX=".so"
 	    LDFLAGS="-export-dynamic"