-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
8
This changeset
changeset: 6067:dcee387cde81
user: ohrstrom
date: Mon Oct 29 13:41:38 2012 -0700
summary: 8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
diff -r 5b29d6157504 -r dcee387cde81 makefiles/GensrcX11Wrappers.gmk
--- a/makefiles/GensrcX11Wrappers.gmk
+++ b/makefiles/GensrcX11Wrappers.gmk
@@ -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 \
breaks cross-compilation as the values in X_CFLAGS and X_LIBS are those of the cross-compiler, not the build machine compiler that will create the sizers executable.
In my case I get:
cc: error: unrecognized option -R
This problem is present in jdk8/jdk8/jdk
changeset: 6067:dcee387cde81
user: ohrstrom
date: Mon Oct 29 13:41:38 2012 -0700
summary: 8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
diff -r 5b29d6157504 -r dcee387cde81 makefiles/GensrcX11Wrappers.gmk
--- a/makefiles/GensrcX11Wrappers.gmk
+++ b/makefiles/GensrcX11Wrappers.gmk
@@ -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 \
breaks cross-compilation as the values in X_CFLAGS and X_LIBS are those of the cross-compiler, not the build machine compiler that will create the sizers executable.
In my case I get:
cc: error: unrecognized option -R
This problem is present in jdk8/jdk8/jdk
- duplicates
-
JDK-8004151 build-infra: Generating X11 wrapper offset file is not cross compilable
- Resolved
- relates to
-
JDK-8001891 build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilations
- Resolved