opnsense-ports/lang/tolua++/files/patch-SConstruct
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

21 lines
751 B
Text

--- 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(" ")
+
+env.Append(SHLINKFLAGS=' -Wl,-soname='+env['SONAME'])
if env['no_cygwin']: