Commit 94995306 authored by Marc G. Fournier's avatar Marc G. Fournier

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"
parent 7825f9b8
This diff is collapsed.
...@@ -16,7 +16,8 @@ case "$host_os" in ...@@ -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 ;;
......
%.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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment