8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
authorohrstrom
Mon, 29 Oct 2012 13:41:38 -0700
changeset 14233 18fda1299ea9
parent 14232 cc37c509b56d
child 14234 85a37ece2d5e
8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation Reviewed-by: ohair
jdk/makefiles/CompileNativeLibraries.gmk
jdk/makefiles/GensrcX11Wrappers.gmk
--- a/jdk/makefiles/CompileNativeLibraries.gmk	Mon Oct 29 13:04:40 2012 -0700
+++ b/jdk/makefiles/CompileNativeLibraries.gmk	Mon Oct 29 13:41:38 2012 -0700
@@ -3385,6 +3385,8 @@
 		INCLUDE_FILES:=$(LIBAWT_LWAWT_FILES),\
 		OPTIMIZATION:=LOW, \
 		CFLAGS:=$(CFLAGS_JDKLIB) \
+                        $(X_CFLAGS) \
+                        $(X_LIBS) \
                         $(foreach dir,$(LIBAWT_LWAWT_DIRS),-I$(dir)) \
                         -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \
                         -I$(JDK_TOPDIR)/src/share/native/sun/java2d \
--- a/jdk/makefiles/GensrcX11Wrappers.gmk	Mon Oct 29 13:04:40 2012 -0700
+++ b/jdk/makefiles/GensrcX11Wrappers.gmk	Mon Oct 29 13:41:38 2012 -0700
@@ -64,6 +64,8 @@
 	$(MKDIR) -p $(@D)
 	$(RM) $@ $@.tmp
 	(cd $(@D) && $(BUILD_CC) -m$* -o $@.tmp $< \
+              $(X_CFLAGS) \
+              $(X_LIBS) \
               -I$(JDK_OUTPUTDIR)/include \
               -I$(JDK_TOPDIR)/src/share/javavm/export \
               -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \