diff options
author | Brad Smith <brad@comstyle.com> | 2022-07-31 13:44:42 -0400 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2022-08-01 10:49:41 +0200 |
commit | a2b05950348cc3ddad6f4b3733d4767f2d4f15aa (patch) | |
tree | 5a2b924308b2f50ff05721c5242465b6ecd554ee | |
parent | cdf27fc2aac0e5cd94f6db15b2efea97a346ee3b (diff) | |
download | nettle-a2b05950348cc3ddad6f4b3733d4767f2d4f15aa.tar.gz |
Use proper PIC flag for *BSD OS's
Signed-off-by: Brad Smith <brad@comstyle.com>
-rw-r--r-- | aclocal.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" ;; |