[LLVMbugs] TOOLLINKOPTSB from Makefile.config is put several places on the command line

Reid Spencer reid at x10sys.com
Thu Oct 28 01:49:29 PDT 2004


Hi Henrik.

Interesting. And here I was thinking no one used TOOLLINKOPTSB :)

Anyway, the problem you're seeing is that TOOLLINKOPTS was getting inserted 
into LDFLAGS twice. Once incorrectly and once correctly. I'm working on a patch 
to correct that right now.

Reid.

Henrik Bach wrote:

> Hi
> 
> Just for fun I set below variables in Makefile.config:
> 
> LDFLAGS+=LDFLAGS
> TOOLLINKOPTSB=TOOLLINKOPTSB
> TOOLLINKOPTS=TOOLLINKOPTS
> 
> to see where they are placed.
> 
> And the variables are put:
> ----------------------------
> /C/Projects/build/MinGW/llvm/mklib --tag=disable-shared --tag=CXX 
> --mode=link g++ -I/C/Projects/build/MinGW/llvm/utils/TableGen 
> -I/C/Projects/build/MinGW/llvm/../../../src/llvm/utils/TableGen 
> -I/C/Projects/build/MinGW/llvm/../../../src/llvm/include 
> -I/C/Projects/build/MinGW/llvm/include 
> -I/C/Projects/build/MinGW/llvm/include 
> -I/C/Projects/build/MinGW/llvm/../../../src/llvm/include -D_GNU_SOURCE 
> -D__STDC_LIMIT_MACROS -Wall -W -Wwrite-strings -Wno-unused LDFLAGS -g 
> -D_DEBUG  -rpath /C/Projects/build/MinGW/llvm/tools/Debug 
> -export-dynamic TOOLLINKOPTS TOOLLINKOPTSB 
> -L/C/Projects/build/MinGW/llvm/lib/Debug 
> -L/C/Projects/build/MinGW/llvm/lib/Debug  TOOLLINKOPTSB  -o 
> /C/Projects/build/MinGW/llvm/tools/Debug/tblgen 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/AsmWriterEmitter.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/CodeEmitterGen.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/CodeGenTarget.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/FileLexer.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/FileParser.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/InstrInfoEmitter.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/InstrSelectorEmitter.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/Record.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/RegisterInfoEmitter.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/TableGen.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/TableGenBackend.o 
> -lLLVMSupport -lLLVMSystem
> g++ -I/C/Projects/build/MinGW/llvm/utils/TableGen 
> -I/C/Projects/build/MinGW/llvm/../../../src/llvm/utils/TableGen 
> -I/C/Projects/build/MinGW/llvm/../../../src/llvm/include 
> -I/C/Projects/build/MinGW/llvm/include 
> -I/C/Projects/build/MinGW/llvm/include 
> -I/C/Projects/build/MinGW/llvm/../../../src/llvm/include -D_GNU_SOURCE 
> -D__STDC_LIMIT_MACROS -Wall -W -Wwrite-strings -Wno-unused LDFLAGS -g 
> -D_DEBUG TOOLLINKOPTS TOOLLINKOPTSB TOOLLINKOPTSB -o 
> /C/Projects/build/MinGW/llvm/tools/Debug/tblgen 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/AsmWriterEmitter.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/CodeEmitterGen.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/CodeGenTarget.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/FileLexer.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/FileParser.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/InstrInfoEmitter.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/InstrSelectorEmitter.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/Record.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/RegisterInfoEmitter.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/TableGen.o 
> /C/Projects/build/MinGW/llvm/utils/TableGen/Debug/TableGenBackend.o 
> -Wl,--export-dynamic  -L/C/Projects/build/MinGW/llvm/lib/Debug 
> -lLLVMSupport -lLLVMSystem -L/C/Projects/build/MinGW/llvm/tools/Debug
> ----------------------------
> 
> I notice that TOOLLINKOPTSB is put several places which I assume it 
> shouldn't. I can't, at this moment, figure why it behaves this way.
> 
> Henrik
> 
> _________________________________________________________________
> Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> LLVMbugs mailing list
> LLVMbugs at cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmbugs




More information about the llvm-bugs mailing list