aboutsummaryrefslogtreecommitdiff
path: root/test/Makefile.am
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2019-03-20 20:33:11 +0100
committerFabrice Fontaine <fontaine.fabrice@gmail.com>2019-03-20 20:43:30 +0100
commit567071b465579952ed7d27e602bde2fb45677d8a (patch)
tree1f81421fde2c228766be7f4edb570d6e60640f0e /test/Makefile.am
parent1f76b3409fc978a1009df352812425fe3f70a39f (diff)
downloadoniguruma-567071b465579952ed7d27e602bde2fb45677d8a.zip
oniguruma-567071b465579952ed7d27e602bde2fb45677d8a.tar.gz
oniguruma-567071b465579952ed7d27e602bde2fb45677d8a.tar.bz2
fix cross-compilation
Don't add -I$(includedir) to CPPFLAGS or cross-compilation will fail on: libtool: compile: /home/fabrice/buildroot/output/host/bin/m68k-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fno-dwarf2-cfi-asm -Wl,-elf2flt -c regparse.c -o regparse.o m68k-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include' Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Diffstat (limited to 'test/Makefile.am')
-rw-r--r--test/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index c623aa3..67b5d1e 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -3,7 +3,7 @@ lib_onig = ../src/libonig.la
AM_LDFLAGS = -L$(prefix)/lib
AM_CFLAGS = -Wall -Wno-invalid-source-encoding
-AM_CPPFLAGS = -I$(top_srcdir)/src -I$(includedir)
+AM_CPPFLAGS = -I$(top_srcdir)/src
if ENABLE_POSIX_API
TESTS = test_utf8 testc testp testcu