This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix libbacktrace -fPIC breakage from "Use libbacktrace in libgfortran"
- From: FX <fxcoudert at gmail dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: gcc-patches at gcc dot gnu dot org, ubizjak at gmail dot com, ian at airs dot com, fortran at gcc dot gnu dot org
- Date: Mon, 24 Aug 2015 18:07:52 +0200
- Subject: Re: Fix libbacktrace -fPIC breakage from "Use libbacktrace in libgfortran"
- Authentication-results: sourceware.org; auth=none
- References: <201508241555 dot t7OFt1VI015330 at ignucius dot se dot axis dot com>
> PIC_FLAG=
> if test -n "${with_target_subdir}"; then
> - PIC_FLAG=-fPIC
> + AC_TRY_COMPILE([void foo(void){}], [PIC_FLAG=-fPIC])
> fi
Thereâs something I donât understand about this test. Shouldnât AC_TRY_COMPILE take a first (empty) argument, âincludesâ? And shouldnât you first set the -fPIC flag before try to compile with that?
FX