diff options
author | Thomas Orgis | 2008-09-15 09:33:01 +0200 |
---|---|---|
committer | Thomas Orgis | 2008-09-15 09:33:01 +0200 |
commit | 68027e0fd2a7397d581697b5664bb450e07fec17 (patch) | |
tree | 54aecb4e7b0b3ffa35f98d4736515a3922b008d1 /audio-drivers/libffado | |
parent | ffa04260d8c9203cfbd18e554a2fb8412aab1962 (diff) |
libffado: fix build with PIC
Diffstat (limited to 'audio-drivers/libffado')
-rw-r--r-- | audio-drivers/libffado/HISTORY | 3 | ||||
-rwxr-xr-x | audio-drivers/libffado/PRE_BUILD | 7 | ||||
-rw-r--r-- | audio-drivers/libffado/libffado-pic.patch | 9 |
3 files changed, 19 insertions, 0 deletions
diff --git a/audio-drivers/libffado/HISTORY b/audio-drivers/libffado/HISTORY index 15c3fc09c1..629caaa8d4 100644 --- a/audio-drivers/libffado/HISTORY +++ b/audio-drivers/libffado/HISTORY @@ -1,3 +1,6 @@ +2008-09-15 Thomas Orgis <sobukus@sourcemage.org> + * PRE_BUILD, libffado-pic.patch: fix build with PIC + 2008-08-26 Thomas Orgis <sobukus@sourcemage.org> * DEPENDS: added some diff --git a/audio-drivers/libffado/PRE_BUILD b/audio-drivers/libffado/PRE_BUILD new file mode 100755 index 0000000000..192c42348f --- /dev/null +++ b/audio-drivers/libffado/PRE_BUILD @@ -0,0 +1,7 @@ +default_pre_build && +cd "$SOURCE_DIRECTORY" && +echo "CFLAGS: $CFLAGS" && +if echo "$CFLAGS" | grep -q PIC; then + message "${MESSAGE_COLOR}Patching build to make PIC work...$DEFAULT_COLOR" && + patch -p0 < "$SCRIPT_DIRECTORY/libffado-pic.patch" +fi diff --git a/audio-drivers/libffado/libffado-pic.patch b/audio-drivers/libffado/libffado-pic.patch new file mode 100644 index 0000000000..0751582a3c --- /dev/null +++ b/audio-drivers/libffado/libffado-pic.patch @@ -0,0 +1,9 @@ +--- external/libconfig/SConscript.orig 2008-09-13 19:12:01.808337148 +0200 ++++ external/libconfig/SConscript 2008-09-13 19:12:56.428690589 +0200 +@@ -36,4 +36,6 @@ + if env.has_key('DEBUG') and env['DEBUG']: + env.AppendUnique( CCFLAGS=["-DDEBUG","-g"] ) + ++env.AppendUnique( CCFLAGS=["-fPIC"] ) ++ + libconfig = env.StaticLibrary('libconfigpp', sources) |