Skip to content

Commit

Permalink
A few more things are now configable, so we are closer to win32 shared
Browse files Browse the repository at this point in the history
library builds. Not there yet, but closer.


git-svn-id: https://svn.parrot.org/parrot/trunk@970 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
Gregor N. Purdy committed Jan 31, 2002
1 parent c1ee8be commit 903e423
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions Configure.pl
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ END
ldflags => $Config{ldflags},
ld_out => '-o ', # ld output file
ld_debug => '', # include debug info in executable
ld_shared => '-shared',

perl => $^X,
test_prog => 'test_parrot',
Expand Down
11 changes: 7 additions & 4 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ A = .a
RM_F = ${rm_f}
RM_RF = ${rm_rf}
AR_CRS = ar crs
LD = ${ld}
LD_SHARED = ${ld_shared}
LD_OUT = ${ld_out}

INC=include/parrot

Expand Down Expand Up @@ -161,7 +164,7 @@ blib_lib:
shared: blib_lib blib/lib/libparrot$(SO) blib/lib/libcore_prederef$(SO) $(TEST_PROG_SO)

blib/lib/libparrot$(SO).${VERSION}: blib_lib $(O_FILES)
$(LD) -shared -Wl,-soname,libparrot$(SO).${MAJOR} $(LDFLAGS) -o blib/lib/libparrot$(SO).${VERSION} $(O_FILES)
$(LD) $(LD_SHARED) -Wl,-soname,libparrot$(SO).${MAJOR} $(LDFLAGS) $(LD_OUT)blib/lib/libparrot$(SO).${VERSION} $(O_FILES)

blib/lib/libparrot$(SO).${MAJOR}.${MINOR}: blib/lib/libparrot$(SO).${VERSION}
rm -f $@
Expand All @@ -176,7 +179,7 @@ blib/lib/libparrot$(SO): blib/lib/libparrot$(SO).${MAJOR}
cd blib/lib; ln -s libparrot$(SO).${MAJOR} libparrot$(SO)

blib/lib/libcore_prederef$(SO).${VERSION}: blib_lib core_ops_prederef$(O)
$(LD) -shared -Wl,-soname,libparrot$(SO).${MAJOR} $(LDFLAGS) -o blib/lib/libcore_prederef$(SO).${VERSION} core_ops_prederef$(O)
$(LD) $(LD_SHARED) -Wl,-soname,libparrot$(SO).${MAJOR} $(LDFLAGS) $(LD_OUT)blib/lib/libcore_prederef$(SO).${VERSION} core_ops_prederef$(O)

blib/lib/libcore_prederef$(SO).${MAJOR}.${MINOR}: blib/lib/libcore_prederef$(SO).${VERSION}
rm -f $@
Expand All @@ -191,7 +194,7 @@ blib/lib/libcore_prederef$(SO): blib/lib/libcore_prederef$(SO).${MAJOR}
cd blib/lib; ln -s libcore_prederef$(SO).${MAJOR} libcore_prederef$(SO)

$(TEST_PROG_SO): test_main$(O) blib/lib/libparrot$(SO) lib/Parrot/OpLib/core.pm lib/Parrot/PMC.pm
$(LD) ${ld_out}$(TEST_PROG) test_main$(O) $(LDFLAGS) $(C_LIBS) -L blib/lib -lparrot
$(LD) $(LD_OUT)$(TEST_PROG) test_main$(O) $(LDFLAGS) $(C_LIBS) -L blib/lib -lparrot


#
Expand Down Expand Up @@ -367,7 +370,7 @@ test: $(TEST_PROG) assemble.pl .test_dummy
.test_dummy:
$(PERL) t/harness

testp: $(TEST_PROG) assemble.pl blib/lib/libcore_prederef$(SO) $(TEST_PROG_SO) .test_dummy_p
testp: $(TEST_PROG) assemble.pl blib/lib/libcore_prederef$(SO) blib/lib/libparrot$(SO) $(TEST_PROG_SO) .test_dummy_p

.test_dummy_p:
$(PERL) t/harness -P
Expand Down
2 changes: 2 additions & 0 deletions hints/mswin32.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
$c{cc_ldflags} = '/link';
$c{cc_debug} = '-Zi';
$c{ld_debug} = '-debug';
$c{ld_shard} = '-dll';
$c{ld_out} = '-out:';
$c{platform} = 'win32';
$c{cp} = 'copy';
$c{slash} = '\\';
Expand Down

0 comments on commit 903e423

Please sign in to comment.