summaryrefslogtreecommitdiff
path: root/lang/gcc/files
diff options
context:
space:
mode:
authorskrll <skrll>2001-05-04 10:15:44 +0000
committerskrll <skrll>2001-05-04 10:15:44 +0000
commit1cd5689fc8f5fc1ceaeb6c4b61cc9f57c3c66eb7 (patch)
tree55ae0330bab3ebcd75bf7887e849ed24ee3fec5e /lang/gcc/files
parentd51dfb37a42a2b4046ffd310b17d0b7b9478afa1 (diff)
downloadpkgsrc-1cd5689fc8f5fc1ceaeb6c4b61cc9f57c3c66eb7.tar.gz
Add --enable-shared to the configuration phase so that a shared libstdc++
gets built. Add makefile fragments to do the right thing for elf and a.out. Make sure they are used. Add @exec/@unexec install-info to the PLIST. Fixes pkg/12154 from Olaf Seibert <rhialto@polderland.nl>
Diffstat (limited to 'lang/gcc/files')
-rw-r--r--lang/gcc/files/netbsd.ml8
-rw-r--r--lang/gcc/files/netbsdelf.ml10
2 files changed, 18 insertions, 0 deletions
diff --git a/lang/gcc/files/netbsd.ml b/lang/gcc/files/netbsd.ml
new file mode 100644
index 00000000000..5ff8e1c7511
--- /dev/null
+++ b/lang/gcc/files/netbsd.ml
@@ -0,0 +1,8 @@
+# a.out with shared libm, so we can link it into the shared libstdc++.
+
+ARLIB = libstdc++.a.`echo $(VERSION) | sed 's/\([0-9]*[.][0-9]*\).*/\1/'`
+SHLIB = libstdc++.so.`echo $(VERSION) | sed 's/\([0-9]*[.][0-9]*\).*/\1/'`
+
+LIBS = $(ARLIB) $(ARLINK) $(SHLIB)
+SHDEPS = -lm
+DEPLIBS = ../$(SHLIB)
diff --git a/lang/gcc/files/netbsdelf.ml b/lang/gcc/files/netbsdelf.ml
new file mode 100644
index 00000000000..9fab25c3bae
--- /dev/null
+++ b/lang/gcc/files/netbsdelf.ml
@@ -0,0 +1,10 @@
+# Elf with shared libm, so we can link it into the shared libstdc++.
+
+ARLIB = libstdc++.a.`echo $(VERSION) | sed 's/\([0-9]*[.][0-9]*\).*/\1/'`
+SHLIB = libstdc++.so.`echo $(VERSION) | sed 's/\([0-9]*[.][0-9]*\).*/\1/'`
+MSHLINK = libstdc++.so.`echo $(VERSION) | sed 's/\([0-9]*\).*/\1/'`
+
+LIBS = $(ARLIB) $(ARLINK) $(SHLIB) $(SHLINK) mshlink
+SHFLAGS = -Wl,-soname,$(MSHLINK)
+SHDEPS = -lm
+DEPLIBS = ../$(SHLIB)