use whatever compiler CC says to compile perl bindings
This commit is contained in:
parent
767afacf6b
commit
a811b51241
1 changed files with 2 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ perlenv.Append(CCFLAGS=["-fpic", '-DSWIG', '-Wno-all',
|
||||||
LIBPATH=["../.."],
|
LIBPATH=["../.."],
|
||||||
SWIGFLAGS=["-DHAMMER_INTERNAL__NO_STDARG_H",
|
SWIGFLAGS=["-DHAMMER_INTERNAL__NO_STDARG_H",
|
||||||
"-Isrc/", "-perl"])
|
"-Isrc/", "-perl"])
|
||||||
|
perlenv['ENV']['CC'] = perlenv['CC']
|
||||||
import os
|
import os
|
||||||
if 'PERL_MM_OPT' in os.environ:
|
if 'PERL_MM_OPT' in os.environ:
|
||||||
perlenv['ENV']['PERL_MM_OPT'] = os.environ['PERL_MM_OPT']
|
perlenv['ENV']['PERL_MM_OPT'] = os.environ['PERL_MM_OPT']
|
||||||
|
|
@ -20,7 +21,7 @@ if 'PERL5LIB' in os.environ:
|
||||||
swig = ['hammer.i']
|
swig = ['hammer.i']
|
||||||
|
|
||||||
hammer_wrap = perlenv.Command(['hammer_wrap.c', 'hammer.pm'], swig, "swig $SWIGFLAGS $SOURCE")
|
hammer_wrap = perlenv.Command(['hammer_wrap.c', 'hammer.pm'], swig, "swig $SWIGFLAGS $SOURCE")
|
||||||
makefile = perlenv.Command(['Makefile'], ['Makefile.PL'], "perl $SOURCE")
|
makefile = perlenv.Command(['Makefile'], ['Makefile.PL'], "perl $SOURCE CC=" + perlenv['ENV']['CC'])
|
||||||
|
|
||||||
targetdir = os.path.dirname(str(hammer_wrap[0].path))
|
targetdir = os.path.dirname(str(hammer_wrap[0].path))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue