I'm an trying to build autogen with the following options:
env PATH=/path/to/bin:"$PATH"
LDFLAGS="-L/grid/gro/vol/gbl_statcomp_devel/x86-32-linux/toolchin/lib
-Wl,-rpath,/path/to/lib" ./configure
It builds, but then make check returns errors like this:
++ gcc -std=gnu99 -DHAVE_CONFIG_H -g -O2 -DTEST_TEST_ERRORS_OPTS
-I/path/to/src/autogen-5.9.2 I/path/to/src/autogen-5.9.2/agen5
-I/path/to/src/autogen-5.9.2/autoopts -I/path/to/guile-1.8.1/include -pthread
-o errors errors.c /path/to/src/autogen-5.9.2/autoopts/.libs/libopts.a
/path/to/src/autogen-5.9.2/autoopts/.libs/libguileopts.a -Wl,-R -L/path/to/lib
-Wl,-rpath,/path/to/lib -pthread -lguile -lltdl -L/path/to/guile-1.8.1/lib
-L/path/to/lib -Wl,-rpath,/path/to/lib -lgmp -lcrypt -lm -lltdl
/path/to/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
Notice the '-Wl,-R' in this line. The linker expects this to be followed by a
directory. It seems that it takes the '-L' from the next argument as the
argument to -R, and then sees /path/to/lib as one of the files to be compiled.
If line 24444 of the configure file is changed from this:
AG_LDFLAGS="${ag_cv_test_ldflags}"
to this:
AG_LDFLAGS=""
make check succeeds.
Seems like a bug.
--
Poor Yorick
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Autogen-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/autogen-users