diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-11-16 10:41:35 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:45:32 +0100 |
commit | 781b41c6e7625935544490ef544934a702ca024c (patch) | |
tree | f4aebfebf8599ed1519ceb4ffe6fabff7bd56d43 /source4 | |
parent | e2ba39bb580369e84253639c5588e5e547858030 (diff) | |
download | samba-781b41c6e7625935544490ef544934a702ca024c.tar.gz samba-781b41c6e7625935544490ef544934a702ca024c.tar.bz2 samba-781b41c6e7625935544490ef544934a702ca024c.zip |
r25994: build: use HOSTCC, HOSTCC_FLAGS, HOSTLD and HOSTLD_FLAGS
metze
(This used to be commit 5a0c30b9a52020cfc39be6862f23755de977a73b)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/build/smb_build/makefile.pm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index 887565f8a4..a69b013174 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -123,7 +123,7 @@ DEPENDS = \$(CC) -M -MG -MP -MT \$(<:.c=.o) -MT \$@ \\ # Dependencies for host objects HDEPENDS = \$(CC) -M -MG -MP -MT \$(<:.c=.ho) -MT \$@ \\ `\$(PERL) \$(srcdir)/script/cflags.pl \$@` \\ - \$(HOSTCC_CFLAGS) \$(FIRST_PREREQ) -o \$@ + \$(HOSTCC_FLAGS) \$(FIRST_PREREQ) -o \$@ # Dependencies for precompiled headers PCHDEPENDS = \$(CC) -M -MG -MT include/includes.h.gch -MT \$@ \\ \$(CFLAGS) \$(FIRST_PREREQ) -o \$@ @@ -146,7 +146,7 @@ COMPILE = \$(CC) `\$(PERL) \$(srcdir)/script/cflags.pl \$@` \\ # Run the compiler for the build host HCOMPILE = \$(HOSTCC) `\$(PERL) \$(srcdir)/script/cflags.pl \$@` \\ - \$(HOSTCC_CFLAGS) -c \$(FIRST_PREREQ) -o \$@ + \$(HOSTCC_FLAGS) -c \$(FIRST_PREREQ) -o \$@ # Precompile headers PCHCOMPILE = @\$(CC) -Ilib/replace \\ @@ -188,17 +188,11 @@ CC=$self->{config}->{CC} CFLAGS=$self->{config}->{CFLAGS} \$(CPPFLAGS) PICFLAG=$self->{config}->{PICFLAG} -HOSTCC=$self->{config}->{HOSTCC} -HOSTCC_CFLAGS=-D_SAMBA_HOSTCC_ $self->{config}->{CFLAGS} \$(CPPFLAGS) - INSTALL_LINK_FLAGS=$extra_link_flags LD=$self->{config}->{LD} LDFLAGS=$self->{config}->{LDFLAGS} -L$libdir -HOSTLD=$self->{config}->{HOSTLD} -# It's possible that we ought to have HOSTLD_LDFLAGS as well - STLD=$self->{config}->{STLD} STLD_FLAGS=$self->{config}->{STLD_FLAGS} @@ -210,6 +204,12 @@ MDLD_FLAGS=$self->{config}->{MDLD_FLAGS} -L\$(builddir)/bin/shared SHLIBEXT=$self->{config}->{SHLIBEXT} +HOSTCC=$self->{config}->{HOSTCC} +HOSTCC_FLAGS=-D_SAMBA_HOSTCC_ $self->{config}->{CFLAGS} \$(CPPFLAGS) + +HOSTLD=$self->{config}->{HOSTLD} +HOSTLD_FLAGS=$self->{config}->{LDFLAGS} + XSLTPROC=$self->{config}->{XSLTPROC} LEX=$self->{config}->{LEX} @@ -505,7 +505,7 @@ __EOD__ if (defined($ctx->{USE_HOSTCC}) && $ctx->{USE_HOSTCC} eq "YES") { $self->output(<< "__EOD__" - \@\$(HOSTLD) \$(LDFLAGS) -o \$\@ \$(INSTALL_LINK_FLAGS) \\ + \@\$(HOSTLD) \$(HOSTLD_FLAGS) -o \$\@ \$(INSTALL_LINK_FLAGS) \\ \$\($ctx->{TYPE}_$ctx->{NAME}_LINK_FLAGS) __EOD__ ); |