freebsd-ports/audio/boodler/files/patch-ab
Pav Lucistnik 19c310a942 - Fix build on amd64/ia64 by passing -fPIC to compiler
PR:		ports/61853
Submitted by:	Dan Pelleg <daniel+boodler@pelleg.org> (maintainer)
Reported by:	bento via kris
2004-01-25 12:17:16 +00:00

31 lines
1.2 KiB
Text

--- configure.py.orig Sat Jan 24 18:44:11 2004
+++ configure.py Sat Jan 24 18:46:37 2004
@@ -7,7 +7,7 @@
import getopt
usagemessage = 'usage: ' + sys.argv[0] + ' [-d NAME] [-i] [-I /dir/path] [-L /dir/path] [-l]'
-usagemessage = usagemessage + '\n or: ' + sys.argv[0] + ' [--driver NAME] [--integer] [--include /dir/path] [--lib /dir/path] [--list]'
+usagemessage = usagemessage + '\n or: ' + sys.argv[0] + ' [--driver NAME] [--integer] [--include /dir/path] [--lib /dir/path] [--list] [--PIC]'
helpmessage = 'Boodler configuration script\n\n' + usagemessage + '''
@@ -68,8 +68,8 @@
'''
try:
- (opts, args) = getopt.getopt(sys.argv[1:], 'd:I:L:lih',
- ['driver=', 'include=', 'lib=', 'list', 'integer', 'help'])
+ (opts, args) = getopt.getopt(sys.argv[1:], 'd:I:L:lihP',
+ ['driver=', 'include=', 'lib=', 'list', 'integer', 'help', 'PIC'])
except getopt.error, ex:
print (sys.argv[0] + ':'), str(ex)
print usagemessage
@@ -101,6 +101,8 @@
extraheaders.append(opval)
if (opname == '--lib' or opname == '-L'):
extralibs.append(opval)
+ if (opname == '--PIC' or opname == '-P'):
+ cflagopts = cflagopts + ' -fPIC'
headerpath = extraheaders + headerpath
libpath = extralibs + libpath