Starting with v3.0 of FreeBSD, we are now an elf system, and dont' have a
-Bforcearchive flag for ld... Give FreeBSD its own special Makefile to get around the "bug"
This commit is contained in:
parent
7825f9b890
commit
949953060a
633
src/configure
vendored
633
src/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -16,7 +16,8 @@ case "$host_os" in
|
|||||||
aux*) os=aux need_tas=no ;;
|
aux*) os=aux need_tas=no ;;
|
||||||
linux*) os=linux need_tas=no ;;
|
linux*) os=linux need_tas=no ;;
|
||||||
bsdi*) os=bsdi need_tas=no ;;
|
bsdi*) os=bsdi need_tas=no ;;
|
||||||
freebsd*|netbsd*|openbsd*) os=bsd need_tas=no ;;
|
freebsd*) os=freebsd need_tas=no ;;
|
||||||
|
netbsd*|openbsd*) os=bsd need_tas=no ;;
|
||||||
dgux*) os=dgux need_tas=no ;;
|
dgux*) os=dgux need_tas=no ;;
|
||||||
aix*) os=aix need_tas=no ;;
|
aix*) os=aix need_tas=no ;;
|
||||||
nextstep*) os=nextstep need_tas=no ;;
|
nextstep*) os=nextstep need_tas=no ;;
|
||||||
|
9
src/makefiles/Makefile.freebsd
Normal file
9
src/makefiles/Makefile.freebsd
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
%.so: %.o
|
||||||
|
$(LD) -x -r -o $<.obj $<
|
||||||
|
@echo building shared object $@
|
||||||
|
@rm -f $@.pic
|
||||||
|
@${AR} cq $@.pic `lorder $<.obj | tsort`
|
||||||
|
${RANLIB} $@.pic
|
||||||
|
@rm -f $@
|
||||||
|
$(LD) -x -Bshareable -Bforcearchive \
|
||||||
|
-o $@ $@.pic
|
Loading…
x
Reference in New Issue
Block a user