From: Brad Smith Date: Sun, 31 Jul 2022 17:44:42 +0000 (-0400) Subject: Use proper PIC flag for *BSD OS's X-Git-Tag: nettle_3.9_release_20230514~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2b05950348cc3ddad6f4b3733d4767f2d4f15aa;p=thirdparty%2Fnettle.git Use proper PIC flag for *BSD OS's Signed-off-by: Brad Smith --- diff --git a/aclocal.m4 b/aclocal.m4 index 8822c180..a398d346 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -10,6 +10,7 @@ AC_CACHE_VAL(lsh_cv_sys_ccpic,[ bsdi4.*) CCPIC="-fPIC" ;; bsdi*) CCPIC="" ;; darwin*) CCPIC="-fPIC" ;; + freebsd*|netbsd*|openbsd*) CCPIC="-fPIC" ;; # Could also use -fpic, depending on the number of symbol references solaris*) CCPIC="-fPIC" ;; cygwin*) CCPIC="" ;; @@ -21,7 +22,7 @@ AC_CACHE_VAL(lsh_cv_sys_ccpic,[ darwin*) CCPIC="-fPIC" ;; irix*) CCPIC="-share" ;; hpux*) CCPIC="+z"; ;; - *freebsd*) CCPIC="-fpic" ;; + freebsd*|netbsd*|openbsd*) CCPIC="-fPIC" ;; sco*|sysv4.*) CCPIC="-KPIC -dy -Bdynamic" ;; solaris*) CCPIC="-KPIC -Bdynamic" ;; winnt*) CCPIC="-shared" ;;