summaryrefslogtreecommitdiff
path: root/app-editors/moe/files/moe-1.14-respect-user-flags.patch
blob: 8616c8095962abf8b008901f413bba7e727fe107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/configure
+++ b/configure
@@ -21,11 +21,9 @@
 infodir='$(datarootdir)/info'
 mandir='$(datarootdir)/man'
 sysconfdir='$(prefix)/etc'
-CXX=g++
-CPPFLAGS=
-CXXFLAGS='-Wall -W -O2'
-LDFLAGS=
-LIBS=-lncurses
+CPPFLAGS="$(${PKG_CONFIG} --cflags ncurses) ${CPPFLAGS}"
+CXXFLAGS="-Wall -W ${CXXFLAGS}"
+LIBS="$(${PKG_CONFIG} --libs ncurses) ${LIBS}"
 MAKEINFO=makeinfo
 
 # checking whether we are using GNU C++.