Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax

2012-03-16 Thread Thomas Preud'homme
Le vendredi 16 mars 2012 22:31:18, grischka a écrit : > Thomas Preud'homme wrote: > >> $ tcc libtcc.c -DONE_SOURCE -shared -o libtcc.so -ldl > > > > I had to add -DTCC_IS_NATIVE > > Because you missed -DTCC_TARGET_X86_64 ;) The configure did. Even if I add it to the command line it stills fails.

Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax

2012-03-16 Thread grischka
Thomas Preud'homme wrote: $ tcc libtcc.c -DONE_SOURCE -shared -o libtcc.so -ldl I had to add -DTCC_IS_NATIVE Because you missed -DTCC_TARGET_X86_64 ;) Btw, for general purpose dynamically grown strings, try CString linker_arg; --- grischka _

Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax

2012-03-16 Thread Thomas Preud'homme
Le vendredi 16 mars 2012 00:39:37, grischka a écrit : > Thomas Preud'homme wrote: > > Can you give me an example which fails for you? > > $ tcc libtcc.c -DONE_SOURCE -shared -o libtcc.so -ldl I had to add -DTCC_IS_NATIVE > $ tcc tests/libtcc_test.c -I. -o libtcc_test libtcc.so -ldl > -Wl,-rpath=`p