Build files: when using $(CPP), use the C flags alongside the CPP flags
[openssl.git] / Configurations / unix-Makefile.tmpl
index b3edd66a56c9ae6b4275ea568593072735424eda..365499e00157a5c6eb1b518cb2e246a6ebe31420 100644 (file)
@@ -850,9 +850,9 @@ EOF
           }
 
           my $cppflags = {
-              lib => '$(LIB_CPPFLAGS)',
-              dso => '$(DSO_CPPFLAGS)',
-              bin => '$(BIN_CPPFLAGS)'
+              lib => '$(LIB_CFLAGS) $(LIB_CPPFLAGS)',
+              dso => '$(DSO_CFLAGS) $(DSO_CPPFLAGS)',
+              bin => '$(BIN_CFLAGS) $(BIN_CPPFLAGS)'
           } -> {$args{intent}};
           if (defined($generator)) {
               # If the target is named foo.S in build.info, we want to