r15214: Introduce subsystem-specific CFLAGS to keep the global CFLAGS short.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 24 Apr 2006 16:16:43 +0000 (16:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:04:19 +0000 (14:04 -0500)
(This used to be commit a495bc60ab1b233fe507b2b1aa0ad7378cf52677)

source4/build/m4/public.m4
source4/build/smb_build/output.pm
source4/lib/registry/registry.h

index 00699acc6e7e16ce97084f6848d28931f5edc5ff..6e8be7fa5e25e8e18f8a096a0902545e014cd87f 100644 (file)
@@ -80,8 +80,8 @@ AC_DEFUN([SMB_EXT_LIB_FROM_PKGCONFIG],
                                        SMB_EXT_LIB_ENABLE($1, YES)
                                AC_MSG_RESULT(yes),
                                        AC_MSG_RESULT(no),
-                               CFLAGS="$OLD_CFLAGS"
                                        AC_MSG_WARN([cannot run when cross-compiling]))
+                       CFLAGS="$OLD_CFLAGS"
 
 
                                SMB_EXT_LIB($1, 
index 5593558c0cacbadee475416fefeb240a6e33698d..848286946b9fde1d8ed356c72cf1f723c22bb35c 100644 (file)
@@ -169,6 +169,11 @@ sub create_output($$)
                }
        }
 
+       foreach $part (values %{$depend}) {
+               $part->{EXTRA_CFLAGS} .= " ".join(" ", @{$part->{CFLAGS}}) if defined($part->{CFLAGS});
+               $part->{EXTRA_CFLAGS} .= " ".join(" ", @{$part->{CPPFLAGS}}) if defined($part->{CPPFLAGS});
+       }
+
        return $depend;
 }
 
index d6b4e5b08c3f9fb1f539bd2c89c227e481b8c6f4..b556829880b0de83a67f635ed3e73ccc27d5dc19 100644 (file)
@@ -36,7 +36,7 @@
 #define HKEY_PERFORMANCE_TEXT   0x80000050
 #define HKEY_PERFORMANCE_NLSTEXT 0x80000060
 
-#define        REG_DELETE                                                                 -1
+#define        REG_DELETE              -1
 
 /*
  * The general idea here is that every backend provides a 'hive'. Combining