Move CFLAGS handling out of smb_build.
[ira/wip.git] / source4 / auth / config.mk
index f13c2e5758993e283b6330899a62084ddd5da129..b825c520ed80670bf62b4894b5aed0970d35a9c2 100644 (file)
@@ -27,6 +27,7 @@ PUBLIC_DEPENDENCIES = SAMDB UTIL_LDB LIBSECURITY
 PRIVATE_DEPENDENCIES = LDAP_ENCODE
 
 auth_sam_OBJ_FILES = $(addprefix $(authsrcdir)/, sam.o)
+$(auth_sam_OBJ_FILES): CFLAGS+=$(LDB_CFLAGS)
 
 $(eval $(call proto_header_template,$(authsrcdir)/auth_sam.h,$(auth_sam_OBJ_FILES:.o=.c)))