Commit 87e7d08a authored by Mark Andrews's avatar Mark Andrews
Browse files

4225. [port] freebsd/openbsd: Use '${CC} -shared' for building

                        shared libraries. [RT #39557]
parent ab8b419a
4225. [port] freebsd/openbsd: Use '${CC} -shared' for building
shared libraries. [RT #39557]
4224. [func] Added support for "dyndb", a new interface for loading
zone data from an external database, developed by
Red Hat for the FreeIPA project.
......
......@@ -20985,7 +20985,12 @@ if test "$dlopen" = "yes"; then
SO_LD="ld"
fi
;;
*-freebsd*|*-openbsd*|*-netbsd*)
*-freebsd*|*-openbsd*)
SO_CFLAGS="-fpic"
SO_LDFLAGS="-shared"
SO_LD="${CC}"
;;
*-netbsd*)
SO_CFLAGS="-fpic"
SO_LDFLAGS="-Bshareable -x"
SO_LD="ld"
......
......@@ -4372,7 +4372,12 @@ if test "$dlopen" = "yes"; then
SO_LD="ld"
fi
;;
*-freebsd*|*-openbsd*|*-netbsd*)
*-freebsd*|*-openbsd*)
SO_CFLAGS="-fpic"
SO_LDFLAGS="-shared"
SO_LD="${CC}"
;;
*-netbsd*)
SO_CFLAGS="-fpic"
SO_LDFLAGS="-Bshareable -x"
SO_LD="ld"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment