mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Linking fix: -lxml2 should be appended after the .o objects when linking to prevent undefined references (and not in LINKFLAGS). Also, FinishBuild was badly indented.
This commit is contained in:
parent
2a8cef7f9e
commit
75cc56d6a3
1 changed files with 19 additions and 17 deletions
|
@ -214,7 +214,7 @@ class Config:
|
|||
print 'xml2-config failed'
|
||||
assert( False )
|
||||
xml2libs = commands.getoutput( 'xml2-config --libs' )
|
||||
env.Append( LINKFLAGS = xml2libs.split( ' ' ) )
|
||||
env.ParseConfig( 'xml2-config --libs' )
|
||||
baseflags = [ '-pipe', '-Wall', '-fmessage-length=0', '-fvisibility=hidden', xml2.split( ' ' ) ]
|
||||
|
||||
if ( useGtk ):
|
||||
|
@ -402,6 +402,8 @@ class Config:
|
|||
# print( module_ldd )
|
||||
|
||||
def find_library( output, libname ):
|
||||
print output
|
||||
print libname
|
||||
match = filter( lambda l : l.find( libname ) != -1, output.split( '\n' ) )[0]
|
||||
return re.split( '.*=> (.*) .*', match )[1]
|
||||
|
||||
|
|
Loading…
Reference in a new issue