aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-03-14 05:12:46 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-03-14 05:12:46 +0000
commit14a6b7d68e37293195a388542a6c6a7113cd5b29 (patch)
tree1c4a17fc635f3b4b45615a9f2ffed29fb084b893
parent0cd3517c79686d38e51efc0a96b637a35db5240d (diff)
downloadports-14a6b7d68e37293195a388542a6c6a7113cd5b29.tar.gz
ports-14a6b7d68e37293195a388542a6c6a7113cd5b29.zip
Fix build on amd64 (shared library objects must be compiled with -fPIC)
Notes
Notes: svn path=/head/; revision=103960
-rw-r--r--www/mod_mp3/files/patch-configure24
1 files changed, 24 insertions, 0 deletions
diff --git a/www/mod_mp3/files/patch-configure b/www/mod_mp3/files/patch-configure
new file mode 100644
index 000000000000..2920958fd4b4
--- /dev/null
+++ b/www/mod_mp3/files/patch-configure
@@ -0,0 +1,24 @@
+--- configure.orig Sat Mar 13 21:11:43 2004
++++ configure Sat Mar 13 21:11:46 2004
+@@ -461,10 +461,10 @@
+
+
+ for (@SRC) {
+- $compile .= qq|\nsrc/$_.o : src/$_.c\n|;
+- $compile .= qq|\t\$(CC) \$(INC) -c src/$_.c \$(DEF) -o src/$_.o \n|;
++ $compile .= qq|\nsrc/$_.lo : src/$_.c\n|;
++ $compile .= qq|\t\$(CC) \$(CFLAGS_SHLIB) \$(INC) -c src/$_.c \$(DEF) -o src/$_.lo \n|;
+ $src .=" $_.c";
+- $obj .=" src/$_.o";
++ $obj .=" src/$_.lo";
+ }
+
+ $data =~ s|%APXS%|$apxs|sg;
+@@ -514,6 +514,7 @@
+ AINCLUDEDIR=-I`$(APXS) -q INCLUDEDIR` `$(APXS) -q CFLAGS`
+ ACFLAGS=-I`$(APXS) -q INCLUDEDIR`
+ LD_SHLIB=`$(APXS) -q LDFLAGS_SHLIB`
++CFLAGS_SHLIB=`$(APXS) -q CFLAGS_SHLIB`
+ CC=`$(APXS) -q CC`
+ LD=`$(APXS) -q LD_SHLIB`
+ CONFDIR=`$(APXS) -q SYSCONFDIR`