1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

Fix build on FreeBSD 10.

Approved by:	portmgr (miwi)
This commit is contained in:
Koop Mast 2011-11-05 18:25:13 +00:00
parent babb1fd224
commit 9ef23fcbd8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285109
2 changed files with 43 additions and 4 deletions

View File

@ -0,0 +1,20 @@
--- support/shlib-install.orig 2009-10-28 14:30:18.000000000 +0100
+++ support/shlib-install 2011-11-05 19:06:58.000000000 +0100
@@ -155,7 +155,7 @@
# FreeBSD 3.x and above can have either a.out or ELF shared libraries
-freebsd3*|freebsdaout*)
+freebsd3.*|freebsdaout*)
if [ -x /usr/bin/objformat ] && [ "`/usr/bin/objformat`" = "elf" ]; then
# libname.so -> libname.so.M
${echo} ${RM} ${INSTALLDIR}/$LINK1
@@ -177,7 +177,7 @@
fi
;;
-freebsd[4-9]*|freebsdelf*|dragonfly*)
+freebsd[4-9].*|freebsd1[0-9].*|freebsdelf*|dragonfly*)
# libname.so -> libname.so.M
${echo} ${RM} ${INSTALLDIR}/$LINK1
if [ -z "$uninstall" ]; then

View File

@ -1,7 +1,21 @@
--- support/shobj-conf.orig Tue Apr 11 15:15:43 2006
+++ support/shobj-conf Sun Feb 4 19:18:20 2007
@@ -128,17 +128,10 @@
--- support/shobj-conf.orig 2009-10-28 14:20:21.000000000 +0100
+++ support/shobj-conf 2011-11-05 18:02:22.000000000 +0100
@@ -118,7 +118,7 @@
SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)'
;;
-freebsd2*)
+freebsd2.*)
SHOBJ_CFLAGS=-fpic
SHOBJ_LD=ld
SHOBJ_LDFLAGS='-x -Bshareable'
@@ -128,25 +128,18 @@
;;
# FreeBSD-3.x ELF
-freebsd3*|freebsdaout*)
+freebsd3.*|freebsdaout*)
SHOBJ_CFLAGS=-fPIC
SHOBJ_LD='${CC}'
- if [ -x /usr/bin/objformat ] && [ "`/usr/bin/objformat`" = "elf" ]; then
@ -17,4 +31,9 @@
- fi
;;
# Darwin/MacOS X
# FreeBSD-4.x and later have only ELF
-freebsd[4-9]*|freebsdelf*|dragonfly*)
+freebsd[4-9].*|freebsd1[0-9].*|freebsdelf*|dragonfly*)
SHOBJ_CFLAGS=-fPIC
SHOBJ_LD='${CC}'