aboutsummaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.freebsd
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefiles/Makefile.freebsd')
-rw-r--r--src/makefiles/Makefile.freebsd8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/makefiles/Makefile.freebsd b/src/makefiles/Makefile.freebsd
index 12a463aa03c..4a852a4b04e 100644
--- a/src/makefiles/Makefile.freebsd
+++ b/src/makefiles/Makefile.freebsd
@@ -5,5 +5,9 @@
@${AR} cq $@.pic `lorder $<.obj | tsort`
${RANLIB} $@.pic
@rm -f $@
-# $(LD) -x -Bshareable -Bforcearchive \
- $(LD) -x -Bshareable -o $@ $@.pic
+ ifdef ELF_SYSTEM
+ $(LD) -x -Bshareable -o $@ $@.pic
+ else
+ $(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic
+ endif
+