]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Use proper PIC flag for *BSD OS's
authorBrad Smith <brad@comstyle.com>
Sun, 31 Jul 2022 17:44:42 +0000 (13:44 -0400)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 1 Aug 2022 08:49:41 +0000 (10:49 +0200)
Signed-off-by: Brad Smith <brad@comstyle.com>
aclocal.m4

index 8822c18016fd182226218a394108a55024fdc9e3..a398d3469ef9f3a682a3a8c12008e9f04e4994c1 100644 (file)
@@ -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" ;;