зеркало из https://github.com/mozilla/gecko-dev.git
Attempt to build on Unix
This commit is contained in:
Родитель
b5d9a45521
Коммит
c04a3d6833
|
@ -52,10 +52,11 @@ my $define;
|
|||
|
||||
if ($^O eq "MSWin32") {
|
||||
$define = "-DXP_PC";
|
||||
$extras{OBJECT} = '$(BASEEXT)$(OBJ_EXT) jsperl.obj';
|
||||
} else {
|
||||
$define = '-DXP_UNIX';
|
||||
}
|
||||
$extras{OBJECT} = '$(BASEEXT)$(OBJ_EXT) jsperl.obj';
|
||||
|
||||
|
||||
print "+++> $libpath\n";
|
||||
|
||||
|
|
|
@ -43,8 +43,16 @@ DEPTH = ..
|
|||
#
|
||||
# XCFLAGS may be set in the environment or on the gmake command line
|
||||
#
|
||||
CC = cc
|
||||
|
||||
CFLAGS += $(OPTIMIZER) $(OS_CFLAGS) $(DEFINES) $(INCLUDES) \
|
||||
-DJSFILE $(XCFLAGS)
|
||||
-DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DX86_LINUX \
|
||||
-DDEBUG -DDEBUG_livshits -Dbool=char -DHAS_BOOL -DGCC_OPT_BUG -D_XOPEN_SOURCE
|
||||
|
||||
# -DJSFILE $(XCFLAGS)\
|
||||
# -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DX86_LINUX
|
||||
|
||||
|
||||
LDFLAGS += -lm $(XLDFLAGS)
|
||||
|
||||
#
|
||||
|
@ -80,8 +88,8 @@ PC_CFILES = \
|
|||
JS.c \
|
||||
$(NULL)
|
||||
|
||||
JS.c: JS.xs typemap
|
||||
perl jsperlbuild.pl
|
||||
#JS.c: JS.xs typemap
|
||||
# perl jsperlbuild.pl
|
||||
|
||||
LIB_CFILES = $(PC_CFILES)
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ foreach(@INC){
|
|||
if(-e $xsubpp && -e $typemap){
|
||||
$res = `perl $xsubpp -typemap $typemap -typemap typemap JS.xs > JS.c`;
|
||||
if(-e "JS.c"){
|
||||
print "Successfuly built JS.c\n";
|
||||
exit(0);
|
||||
}
|
||||
else{
|
||||
|
|
Загрузка…
Ссылка в новой задаче