Ticket #329: libffado-2.1.0-add-link-flags

File libffado-2.1.0-add-link-flags, 1.3 kB (added by bsjones, 6 years ago)

Patch to pass link flags into scons

Line 
1 diff -Nur libffado-2.1.0.orig/SConstruct libffado-2.1.0/SConstruct
2 --- libffado-2.1.0.orig/SConstruct      2011-04-21 21:32:11.000000000 +1000
3 +++ libffado-2.1.0/SConstruct   2011-04-25 23:42:12.000000000 +1000
4 @@ -75,7 +75,7 @@
5      BoolVariable( "ENABLE_OPTIMIZATIONS", "Enable optimizations and the use of processor specific extentions (MMX/SSE/...).", False ),
6      BoolVariable( "PEDANTIC", "Enable -Werror and more pedantic options during compile.", False ),
7      ( "COMPILE_FLAGS", "Add additional flags to the environment.\nOnly meant for distributors and gentoo-users who want to over-optimize their built.\n Using this is not supported by the ffado-devs!" ),
8 -
9 +    ( "LINKFLAGS", "Add additional flags to the linker command line.","")
10      )
11  
12  ## Load the builders in config
13 diff -Nur libffado-2.1.0.orig/src/SConscript libffado-2.1.0/src/SConscript
14 --- libffado-2.1.0.orig/src/SConscript  2010-09-11 07:50:58.000000000 +1000
15 +++ libffado-2.1.0/src/SConscript       2011-04-26 00:03:41.000000000 +1000
16 @@ -280,6 +280,10 @@
17         if env['REQUIRE_LIBAVC']:
18                 libenv.MergeFlags( env['LIBAVC1394_FLAGS'] )
19  
20 +# Add additional linker flags
21 +if env['LINKFLAGS']:
22 +    libenv.MergeFlags( env['LINKFLAGS'] )
23 +
24  libname_versioned = "libffado.so.%s" % libenv['VERSION']
25  libname_versioned_short = "libffado.so.%s" % libenv['VERSION'].split('.')[0]
26