This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Backticks (`) in makefile
- From: "Sisyphus" <kalinabears at iinet dot net dot au>
- To: "gcc" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 20 Jun 2003 11:00:08 +1000
- Subject: Backticks (`) in makefile
Hi,
I have perl-5.8.0 on Win32 built with gcc and dmake. ('dmake' is the norm
when building perl on Win32 with gcc - there is pesumably some problem(s) if
'make' is used.)
I'm trying to statically link a perl module and one of the makefiles
generated contains the following:
$(MAP_LINKCMD) -o $@ $(OPTIMIZE) ./perlmain$(OBJ_EXT) $(LDFROM)
$(MAP_STATIC) $(LLIBPERL) `cat $(INST_ARCHAUTODIR)/extralibs.all`
$(MAP_PRELIBS)
(That's all on one line in the makefile.)
On Linux (with 'make') I'm told there's no problem building this module
statically linked, but dmake obviously doesn't inderstand the significance
of the backticks. I get the error that there is no such file or directory as
`cat. I don't understand the significance of the backticks, either. Anyone
got some advice on what they mean - or on where I can find some relevant
documentation - so that I might be able to devise a hack ?
'cat' will also be meaningless on win32, but I'm hoping that changing it to
'type' will take care of that. The main problem is to work out what to do
about those backticks.
I tried some wild guesses - like deleting the backticks, and changing them
to quotes. If I delete '`cat .....`' entirely I end up with an "undefined
reference" to a couple of functions.
Cheers,
Rob