opnsense-ports/databases/grass7/files/patch-configure
Franco Fichtner 5675086294 */*: sync with upstream
Taken from: FreeBSD
2021-10-11 08:31:11 +02:00

15 lines
608 B
Text

--- configure.orig 2020-12-21 18:40:15 UTC
+++ configure
@@ -1603,10 +1603,11 @@ 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_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
SHLIB_SUFFIX=".so"
- LDFLAGS="-export-dynamic"
+ LDFLAGS="-Wl,--export-dynamic"
#LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
# TODO: add optional pthread support with any combination of: