summaryrefslogtreecommitdiff
path: root/src/stage2/patches/ncurses.patch
blob: 79d9b6a5d8cbc0c0e43709ec1581f9e7150e5701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/PKGBUILD	2018-02-19 09:58:10.624117850 +0100
+++ b/PKGBUILD	2018-02-19 11:04:15.515591931 +0100
@@ -21,10 +21,12 @@ validpgpkeys=('C52048C0C0748FEE227D47A27
 build() {
   cd $pkgname-$pkgver
 
-  ./configure --prefix=/usr --mandir=/usr/share/man \
+  sed -i 's|CPPFLAGS="\$CPPFLAGS -I\${|#$|' configure
+  ./configure --host=@TARGET@ --build=@BUILDHOST@ --prefix=/usr --mandir=/usr/share/man \
     --with-pkg-config-libdir=/usr/lib/pkgconfig \
     --with-shared --with-normal --without-debug --without-ada \
-    --enable-widec --enable-pc-files --with-cxx-binding --with-cxx-shared
+    --enable-widec --enable-pc-files --with-cxx-binding --with-cxx-shared \
+    --disable-stripping
   make
 }