mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
aab1baca99
Reported by: miwi
22 lines
751 B
Plaintext
22 lines
751 B
Plaintext
--- 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']:
|
|
|