mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r19618: pass -D_SAMBA_HOSTCC_ when using the hostcompiler
metze
This commit is contained in:
parent
0a52e11a9c
commit
846553085e
@ -130,7 +130,9 @@ CPPFLAGS=$builddir_headers-I\$(srcdir)/include -I\$(srcdir) -I\$(srcdir)/lib -I\
|
||||
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=-Wl,-rpath-link,\$(builddir)/bin/shared
|
||||
|
||||
|
@ -341,7 +341,7 @@ unused_macros:
|
||||
|
||||
.c.hd:
|
||||
@echo "Generating host-compiler dependencies for $<"
|
||||
@$(CC) -M -MG -MP -MT $(<:.c=.ho) -MT $@ `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
|
||||
@$(CC) -M -MG -MP -MT $(<:.c=.ho) -MT $@ `$(PERL) $(srcdir)/script/cflags.pl $@` $(HOSTCC_CFLAGS) $< -o $@
|
||||
|
||||
include/includes.d: include/includes.h
|
||||
@echo "Generating dependencies for $<"
|
||||
@ -366,10 +366,10 @@ include/includes.d: include/includes.h
|
||||
|
||||
.c.ho:
|
||||
@echo "Compiling $*.c with host compiler"
|
||||
@$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $*.c -o $@ && exit 0;\
|
||||
@$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(HOSTCC_CFLAGS) -c $*.c -o $@ && exit 0;\
|
||||
echo "The following command failed:" 1>&2;\
|
||||
echo "$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $*.c -o $@" 1>&2;\
|
||||
$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $*.c -o $@ >/dev/null 2>&1
|
||||
echo "$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(HOSTCC_CFLAGS) -c $*.c -o $@" 1>&2;\
|
||||
$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(HOSTCC_CFLAGS) -c $*.c -o $@ >/dev/null 2>&1
|
||||
|
||||
.h.h.gch:
|
||||
@echo "Precompiling $<"
|
||||
|
Loading…
Reference in New Issue
Block a user