1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2025-01-08 06:02:51 +08:00

Fix configure to make config.mak correctly

CC?=  failed to provide CC to makefile, instead always CC=cc would be used. Same can be said for CPPFLAGS,USER_CFLAGS and USER_LDFLAGS
for example CC="gcc -m32" failed to work and it compiled 64 bit binary
This commit is contained in:
Jatin Rungta 2016-12-23 20:25:44 +05:30 committed by GitHub
parent bf6eeff75a
commit 352d409798

8
configure vendored
View File

@ -146,10 +146,10 @@ check_compile_run 'whether OpenBSDs fclose() (illegally) calls close()' \
'#include <stdio.h>\n#include<stdlib.h>\nint close(int x){exit(0);}int main(){fclose(stdin);return 1;}' && \
OUR_CPPFLAGS="$OUR_CPPFLAGS -DBROKEN_FCLOSE"
echo CC?=$CC>config.mak
[ -z "$CPPFLAGS" ] || echo CPPFLAGS?=$CPPFLAGS>>config.mak
[ -z "$CFLAGS" ] || echo USER_CFLAGS?=$CFLAGS>>config.mak
[ -z "$LDFLAGS" ] || echo USER_LDFLAGS?=$LDFLAGS>>config.mak
echo CC=$CC>config.mak
[ -z "$CPPFLAGS" ] || echo CPPFLAGS=$CPPFLAGS>>config.mak
[ -z "$CFLAGS" ] || echo USER_CFLAGS=$CFLAGS>>config.mak
[ -z "$LDFLAGS" ] || echo USER_LDFLAGS=$LDFLAGS>>config.mak
echo prefix=$prefix>>config.mak
echo exec_prefix=$exec_prefix>>config.mak
echo bindir=$bindir>>config.mak