diff options
author | dankcushions | 2016-04-22 15:10:35 +0100 |
---|---|---|
committer | dankcushions | 2016-04-22 15:10:35 +0100 |
commit | 163249087400935f084080127990bc762e83319c (patch) | |
tree | 93e9704ebb9395c4f6c7bab847d9df7abb005d3d /configure | |
parent | 4ed8f00a1221b15925117f1c7413b4640e6e7198 (diff) | |
parent | cb4d282af668df3bdbd428be5a5ad26996cd0f4f (diff) | |
download | pcsx_rearmed-163249087400935f084080127990bc762e83319c.tar.gz pcsx_rearmed-163249087400935f084080127990bc762e83319c.tar.bz2 pcsx_rearmed-163249087400935f084080127990bc762e83319c.zip |
Merge branch 'notaz-master'
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -24,7 +24,13 @@ compile_binary() check_define() { - $CC -E -dD $CFLAGS include/arm_features.h | grep -q $1 || return 1 + $CC -E -dD $CFLAGS include/arm_features.h | grep -q "$1" || return 1 + return 0 +} + +check_define_val() +{ + $CC -E -dD $CFLAGS include/arm_features.h | grep "$1" | awk '{print $3}' return 0 } @@ -477,6 +483,11 @@ if [ "x$need_xlib" = "xyes" ]; then check_xlib_headers || fail "please install libx11-dev" fi +sizeof_long=`check_define_val __SIZEOF_LONG__` +if [ "x$sizeof_long" = "x4" ]; then + CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64" +fi + cat > $TMPC <<EOF void test(void *f, void *d) { fread(d, 1, 1, f); } EOF |