mirror of
https://git.freebsd.org/ports.git
synced 2025-06-27 07:30:32 -04:00
18 lines
642 B
Text
18 lines
642 B
Text
--- exports/Makefile.orig 2015-10-27 20:44:50 UTC
|
|
+++ exports/Makefile
|
|
@@ -140,6 +140,7 @@ endif
|
|
#http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
|
|
ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD NetBSD))
|
|
|
|
+EXTRALIB += -lgfortran
|
|
so : ../$(LIBSONAME)
|
|
|
|
ifeq (, $(SYMBOLPREFIX)$(SYMBOLSUFFIX))
|
|
@@ -151,6 +152,7 @@ else
|
|
endif
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
|
|
-Wl,--whole-archive $< -Wl,--no-whole-archive \
|
|
+ -Wl,-soname,$(LIBPREFIX).so.$(MAJOR_VERSION) \
|
|
$(FEXTRALIB) $(EXTRALIB)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
|
|
rm -f linktest
|