summaryrefslogtreecommitdiff
path: root/source4/build/smb_build
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-11-07 12:54:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:25:16 -0500
commitead66ffddf215a697533880b1958bd2f2903572f (patch)
treeb1413abd09a4b35b51891448d7330b8a77e86249 /source4/build/smb_build
parent14b00f10d9279b580c8bc6479b9e0402a74daf11 (diff)
downloadsamba-ead66ffddf215a697533880b1958bd2f2903572f.tar.gz
samba-ead66ffddf215a697533880b1958bd2f2903572f.tar.bz2
samba-ead66ffddf215a697533880b1958bd2f2903572f.zip
r19618: pass -D_SAMBA_HOSTCC_ when using the hostcompiler
metze (This used to be commit 846553085e57bda44fda2a541bf00517d3586e8c)
Diffstat (limited to 'source4/build/smb_build')
-rw-r--r--source4/build/smb_build/makefile.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index 0158597f74..f763ccbc18 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -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