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