packages: libffado/libffado-build.patch - always use -fPIC

baggins baggins at pld-linux.org
Mon Apr 18 14:40:26 CEST 2011


Author: baggins                      Date: Mon Apr 18 12:40:26 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- always use -fPIC

---- Files affected:
packages/libffado:
   libffado-build.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/libffado/libffado-build.patch
diff -u packages/libffado/libffado-build.patch:1.1 packages/libffado/libffado-build.patch:1.2
--- packages/libffado/libffado-build.patch:1.1	Mon Apr 18 14:30:43 2011
+++ packages/libffado/libffado-build.patch	Mon Apr 18 14:40:21 2011
@@ -26,12 +26,27 @@
  
  if env['PROFILE']:
  	print "Doing a PROFILE build"
-@@ -456,7 +456,7 @@
+@@ -359,8 +359,6 @@
+ config_os = 3
+ config = config_guess.split ("-")
+ 
+-needs_fPIC = False
+-
+ # Autodetect
+ if env['DIST_TARGET'] == 'auto':
+     if re.search ("x86_64", config[config_cpu]) != None:
+@@ -451,13 +449,11 @@
+     elif env['DIST_TARGET'] == "x86_64":
+         print "Doing a 64-bit x86 build"
+         env.MergeFlags( "-m64" )
+-        needs_fPIC = True
+     else:
          print "Doing a 32-bit build"
  	env.MergeFlags( "-m32" )
  
 -if needs_fPIC or '-fPIC' in env['OS_CFLAGS'] or "-fPIC" in env['OS_CCFLAGS']:
-+if needs_fPIC or '-fPIC' in env['CFLAGS'] or "-fPIC" in env['CCFLAGS']:
-     env.MergeFlags( "-fPIC" )
+-    env.MergeFlags( "-fPIC" )
++env.MergeFlags( "-fPIC" )
  
  # end of processor-specific section
+ if env['ENABLE_OPTIMIZATIONS']:
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libffado/libffado-build.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list