summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2019-08-30 19:27:25 +0200
committerJeroen Roovers <jer@gentoo.org>2019-08-30 19:29:28 +0200
commit4f9ec75b4ecdcfa44e9b242d5feab6975df42912 (patch)
tree798a1bef18c3bdca278165ee689b9543a6cfa00d /net-libs/libpcap/files
parentdev-util/pkgcheck: version bump to 0.6.3 (diff)
downloadgentoo-4f9ec75b4ecdcfa44e9b242d5feab6975df42912.tar.gz
gentoo-4f9ec75b4ecdcfa44e9b242d5feab6975df42912.tar.bz2
gentoo-4f9ec75b4ecdcfa44e9b242d5feab6975df42912.zip
net-libs/libpcap: Fix compiling on sparc64-linux-*
Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-libs/libpcap/files')
-rw-r--r--net-libs/libpcap/files/libpcap-1.9.0-os.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/net-libs/libpcap/files/libpcap-1.9.0-os.patch b/net-libs/libpcap/files/libpcap-1.9.0-os.patch
new file mode 100644
index 000000000000..d3ec8014084f
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-1.9.0-os.patch
@@ -0,0 +1,33 @@
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -415,7 +415,7 @@
+ aix*)
+ ;;
+
+- freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
++ freebsd*|solaris*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
+ #
+ # Platforms where the linker is the GNU linker
+ # or accepts command-line arguments like
+@@ -429,10 +429,10 @@
+ PIC_OPT=-fpic
+ case "$host_cpu" in
+
+- sparc64*)
++ sparc64*|sparcv9*)
+ case "$host_os" in
+
+- freebsd*|openbsd*)
++ freebsd*|solaris*|openbsd*|linux*)
+ PIC_OPT=-fPIC
+ ;;
+ esac
+@@ -497,7 +497,7 @@
+ V_SHLIB_OPT="-G -bnoentry -bexpall"
+ ;;
+
+- freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
++ freebsd*|solaris*|netbsd*|openbsd*|dragonfly*|linux*)
+ #
+ # "cc" is GCC.
+ #