freebsd-ports/lang/tolua++50/files/patch-SConstruct

22 lines
751 B
Text
Raw Normal View History

2008-08-22 00:31:18 +02:00
--- SConstruct.orig 2006-04-10 13:45:44.000000000 +0400
+++ SConstruct 2008-08-22 01:43:56.000000000 +0400
@@ -17,6 +17,7 @@
opts.Add('CCFLAGS', 'Flags for the compiler.', ['-O2', '-Wall'])
opts.Add('LINK', 'The linker.')
opts.Add('LINKFLAGS', 'Linker flags.', [])
+opts.Add('SONAME', 'Shared library name.')
opts.Add('no_cygwin', 'Use -mno-cygwin to build using the mingw compiler on cygwin', 0)
opts.Add('LIBS', 'libraries', [])
opts.Add('LIBPATH', 'library path', [])
@@ -128,7 +129,9 @@
########### end of helper builders
env['CPPPATH'] = '#/include'
-env['LIBPATH'] = ['#/lib'] + env['LIBPATH']
+env['LIBPATH'] = ['#/lib'] + env['LIBPATH'].split(" ")
2008-08-22 00:31:18 +02:00
+
+env.Append(SHLINKFLAGS=' -Wl,-soname='+env['SONAME'])
if env['no_cygwin']: