Permalink
Browse files

yaws [PATCH] Use $CC instead of gcc

Hi,

I'm just a newbie, but these fixes seemed obvious.
Hope it's useful.
  • Loading branch information...
1 parent 5689b6c commit c73cff67d1adc99718191a845e981c49962490dc dnz@bk.ru committed with Jun 30, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 configure.in
View
@@ -120,7 +120,7 @@ case "$target_os" in
cat >> confdefs.h << EOF
#define WIN32 1
EOF
- LD_SHARED="gcc -shared"
+ LD_SHARED="$CC -shared"
DLL=dll
DLL_LIBS="-lc \"$ERL_DLL_LIB\""
@@ -199,7 +199,7 @@ HAVE_SENDFILE=false
case "$target_os" in
*linux*)
AC_DEFINE(LINUX)
- LD_SHARED="gcc -shared"
+ LD_SHARED="$CC -shared"
AC_SUBST(LD_SHARED)
FPIC=-fpic
AC_SUBST(FPIC)
@@ -236,7 +236,7 @@ case "$target_os" in
*darwin*)
AC_CHECK_LIB([c],[sendfile],[HAVE_SENDFILE=true])
CFLAGS="$CFLAGS -I/usr/include/pam"
- LD_SHARED="gcc -bundle -fPIC -flat_namespace -undefined suppress"
+ LD_SHARED="$CC -bundle -fPIC -flat_namespace -undefined suppress"
AC_SUBST(LD_SHARED)
FPIC=-fPIC
AC_SUBST(FPIC)

0 comments on commit c73cff6

Please sign in to comment.