mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
Use standard variable for partial linking.
(This used to be commit 949fca9540889bb640466fc21ca36d08f77066a3)
This commit is contained in:
parent
8d7e2eb68c
commit
f6dec9de47
@ -234,6 +234,7 @@ sub calc_unique_deps($$$$$$$$)
|
||||
if (defined ($dep->{OUTPUT_TYPE}) &&
|
||||
($withlibs or
|
||||
(@{$dep->{OUTPUT_TYPE}}[0] eq "INTEGRATED") or
|
||||
(@{$dep->{OUTPUT_TYPE}}[0] eq "MERGED_OBJ") or
|
||||
(@{$dep->{OUTPUT_TYPE}}[0] eq "STATIC_LIBRARY"))) {
|
||||
push (@$busy, $dep->{NAME});
|
||||
calc_unique_deps($dep->{NAME}, $INPUT, $dep->{PUBLIC_DEPENDENCIES}, $udeps, $withlibs, $forward, $pubonly, $busy);
|
||||
|
@ -289,7 +289,7 @@ sub MergedObj($$)
|
||||
$ctx->{TARGET_MERGED_OBJ}: \$($ctx->{NAME}_FULL_OBJ_LIST)
|
||||
\@echo Partially linking \$@
|
||||
\@mkdir -p bin/mergedobj
|
||||
\@\$(LD) -r -o \$@ \$($ctx->{NAME}_FULL_OBJ_LIST)
|
||||
\$(PARTLINK) -o \$@ \$($ctx->{NAME}_FULL_OBJ_LIST)
|
||||
|
||||
__EOD__
|
||||
);
|
||||
|
@ -37,6 +37,9 @@ PCHCOMPILE = @$(CC) -Ilib/replace \
|
||||
$(CFLAGS) `$(PERL) $(srcdir)/script/cflags.pl $@` \
|
||||
$(PICFLAG) $(CPPFLAGS) -c $(FIRST_PREREQ) -o $@
|
||||
|
||||
# Partial linking
|
||||
PARTLINK = @$(PROG_LD) -r
|
||||
|
||||
include/config.h:
|
||||
@echo "include/config.h not present"
|
||||
@echo "You need to rerun ./autogen.sh and ./configure"
|
||||
|
Loading…
x
Reference in New Issue
Block a user