[plt-scheme] pltscheme-370 build problem: libtool: compile: unable to infer tagged configuration
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthew Flatt wrote:
> At Sun, 22 Jul 2007 18:26:47 +0200, "Marijn Schouten (hkBst)" wrote:
>> /var/tmp/portage/dev-scheme/drscheme-370.6/work/plt-370.6/src/lt/libtool
>> - --mode=link x86_64-pc-linux-gnu-gcc -release 370.6 -rpath /usr/lib -o
>> ../libmzgc.la alloc.lo reclaim.lo allchblk.lo misc.lo mach_dep.lo os_dep.lo
>> mark_rts.lo headers.lo mark.lo obj_map.lo blacklst.lo finalize.lo new_hblk.lo
>> dbg_mlc.lo malloc.lo stubborn.lo checksums.lo solaris_threads.lo
>> pthread_support.lo pthread_stop_world.lo darwin_stop_world.lo typd_mlc.lo
>> ptr_chck.lo mallocx.lo solaris_pthreads.lo gcj_mlc.lo specific.lo gc_dlopen.lo
>> backgraph.lo win32_threads.lo dyn_load.lo
>> libtool: link: unable to infer tagged configuration
>> libtool: link: specify a tag with `--tag'
>> make[6]: *** [../libmzgc.la] Error 1
>
> Ok, I added --tag for link mode, too.
>
> Matthew
it had no effect. This is the patch I created from configure/trunk and applied:
- --- configure.old 2007-07-22 19:14:39.000000000 +0200
+++ configure 2007-07-22 19:10:19.000000000 +0200
@@ -5389,6 +5389,7 @@
;;
Linux)
LIBS="$LIBS -rdynamic"
+ DYN_CFLAGS="-fPIC"
# PPC: X11 librares are not found
case `$UNAME -m` in
ppc)
@@ -11179,11 +11180,11 @@
STATIC_AR="${LIBTOOLPROG} --mode=link $CC -o"
ARFLAGS=""
RANLIB=":"
- - MZLINKER="${LIBTOOLPROG} --mode=link $CC${need_gcc_static_libgcc} -rpath
${absprefix}/lib"
- - MREDLINKER="${LIBTOOLPROG} --mode=link $CXX${need_gcc_static_libgcc} -rpath
${absprefix}/lib"
+ MZLINKER="${LIBTOOLPROG} --mode=link --tag=CC $CC${need_gcc_static_libgcc}
- -rpath ${absprefix}/lib"
+ MREDLINKER="${LIBTOOLPROG} --mode=link --tag=CXX
$CXX${need_gcc_static_libgcc} -rpath ${absprefix}/lib"
PLAIN_CC="$CC"
- - CC="${LIBTOOLPROG} --mode=compile $CC"
- - CXX="${LIBTOOLPROG} --mode=compile $CXX"
+ CC="${LIBTOOLPROG} --mode=compile --tag=CC $CC"
+ CXX="${LIBTOOLPROG} --mode=compile --tag=CXX $CXX"
AS="${LIBTOOLPROG} --mode=compile $AS"
LIBSFX=la
WXLIBS=WXLIBSDYN
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGo5HDp/VmCx0OL2wRAtPEAJ99/y09WokGfa7cozXSBF4dXtDbNQCfRaI/
x/orMWn5xdikzVpBdZ8XvGA=
=oLxM
-----END PGP SIGNATURE-----