1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

Fix building modules on -current.

Submitted by:	Maxim Sobolev <sobomax@altavista.net>
This commit is contained in:
Thomas Gellekum 2000-04-17 07:38:02 +00:00
parent d0e24bc7e7
commit bd60810ce7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=27686

View File

@ -5,7 +5,7 @@
Linux*) LDSHARED="gcc -shared";;
dgux*) LDSHARED="ld -G";;
- FreeBSD*/3*) LDSHARED="gcc -shared";;
+ FreeBSD*/3*|FreeBSD*/4*) LDSHARED='gcc -shared ${LDFLAGS}';;
+ FreeBSD*/3*|FreeBSD*/4*|FreeBSD*/5*) LDSHARED='gcc -shared ${LDFLAGS}';;
FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";;
NetBSD*)
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
@ -14,7 +14,7 @@
hp*|HP*)
LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
- FreeBSD/3*) LINKFORSHARED="-Xlinker -export-dynamic";;
+ FreeBSD/3*|FreeBSD/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
+ FreeBSD/3*|FreeBSD/4*|FreeBSD*/5*) LINKFORSHARED="-Xlinker -export-dynamic";;
Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
# -u libsys_s pulls in all symbols in libsys
next/2*|next/3*) LINKFORSHARED="-u libsys_s";;