LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File brltty-cppflags.patch of Package brltty (Project openSUSE:Factory)

2009-05-06  Stepan Kasal  <skasal@redhat.com>

	* Bindings/Java/Makefile.in: Propagate configure-time CPPFLAGS.

--- brltty-4.3/Bindings/Java/Makefile.in.cppflags	
+++ brltty-4.3/Bindings/Java/Makefile.in	
@@ -35,6 +35,8 @@
 JAVA_JNI_FLAGS = @JAVA_JNI_FLAGS@
 JAVA_JNI_DESTDIR = $(INSTALL_ROOT)
 
+CPPFLAGS = @CPPFLAGS@
+
 all: jar jni doc
 
 JAVA_SOURCES = $(SRC_DIR)/Brlapi.java \
@@ -55,7 +57,7 @@
 	$(MKLIB:<name>=$(API_NAME)) $@ bindings.$O $(API_LDFLAGS)
 
 bindings.$O:
-	$(CC) $(LIBCFLAGS) $(JAVA_JNI_FLAGS) -o $@ -c $(SRC_DIR)/bindings.c
+	$(CC) $(CPPFLAGS) $(LIBCFLAGS) $(JAVA_JNI_FLAGS) -o $@ -c $(SRC_DIR)/bindings.c
 
 JAVA_JAR_FILE = $(API_NAME).jar
 jar: $(JAVA_JAR_FILE)