diff lib/isl/isl.sh @ 671:83854d0ac053

lib/isl: fix build with clang
author David Demelier <markand@malikania.fr>
date Thu, 01 Aug 2019 20:10:00 +0200
parents 25cecc6dca48
children 59a2fa6992bc
line wrap: on
line diff
--- a/lib/isl/isl.sh	Wed Jul 31 19:50:44 2019 +0200
+++ b/lib/isl/isl.sh	Thu Aug 01 20:10:00 2019 +0200
@@ -25,10 +25,10 @@
 
 : ${CHOST:=$(uname -m)-linux-musl}
 : ${CBUILD:=$(uname -m)-linux-musl}
-: ${CC:=gcc}
-: ${CFLAGS:=-O2}
-: ${CXX:=g++}
-: ${CXXFLAGS:=-O2}
+: ${CC:=clang}
+: ${CFLAGS:=-O2 -D_XOPEN_SOURCE}        # required for clang/musl
+: ${CXX:=clang++}
+: ${CXXFLAGS:=-O2 -D_XOPEN_SOURCE}      # required for clang/musl
 : ${LDFLAGS:=}
 : ${LIBS:=}
 
@@ -47,7 +47,7 @@
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
-		--prefix= \
+		--prefix=/. \
 		--disable-static \
 		--enable-shared \
 		--with-gmp=system