[libnative-platform-java] 04/05: d/Makefile: Move -lcurses to the end of the command, thus fixing a symbol error in Ubuntu

Kai-Chung Yan seamlik-guest at moszumanska.debian.org
Fri Mar 9 14:09:18 GMT 2018


This is an automated email from the git hooks/post-receive script.

seamlik-guest pushed a commit to branch master
in repository libnative-platform-java.

commit 4553c5d51c4a9d7d0b866fcc79e12d555c3035a7
Author: 殷啟聰 | Kai-Chung Yan <seamlikok at gmail.com>
Date:   Fri Mar 9 22:05:40 2018 +0800

    d/Makefile: Move -lcurses to the end of the command, thus fixing a symbol error in Ubuntu
---
 debian/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/Makefile b/debian/Makefile
index b09f39f..8a66a61 100644
--- a/debian/Makefile
+++ b/debian/Makefile
@@ -36,7 +36,8 @@ $(BUILD_DIR)/libnative-platform.so: $(MAIN_CXX_SRC) $(BUILD_DIR)/native.h
 	$(CXX) -shared $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(MAIN_CXX_SRC)
 
 $(BUILD_DIR)/libnative-platform-curses.so: $(CURSES_CXX_SRC) $(BUILD_DIR)/native.h
-	$(CXX) -shared $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -lcurses -o $@ $(CURSES_CXX_SRC)
+	# "-l*" options must be put at the end, thus fixing symbol errors in Ubuntu.
+	$(CXX) -shared $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(CURSES_CXX_SRC) -lcurses
 
 $(BUILD_DIR)/classes/%.class: $(JAVA_SRC)
 	mkdir --parents $(BUILD_DIR)/classes

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libnative-platform-java.git



More information about the pkg-java-commits mailing list