Hi,
Am building CLFS from SVN-20070913-x86. I am using Makefiles to make each
individual source package, and when running the Makefile for Perl, I cannot
get a 'sed' statement to be properly interpreted. According to the CLFS
guide, the statement is:
sed -i -e "[EMAIL PROTECTED]''@pldlflags=\"\$cccdlflags\"@g" \
-e "[EMAIL PROTECTED]'static'@static_target='static_pic'@g" Makefile.SH
When I insert that into my Makefile (see at end of message), the Makefile
has trouble identifying/parsing the $cccdlflags portion. During execution
of the Makefile, only "dlflags" is used. Here's the output:
cd perl-5.8.8; make
make[2]: Entering directory `/sources/build-clfs/perl/perl-5.8.8'
`sh cflags "optimize='-O2'" perl.o` dlflags perl.c
CCCMD = cc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall
cc: dlflags: No such file or directory
make[2]: *** [perl.o] Error 1
I am not a sed expert, thus I would like to know if anyone could offer help
to correct my Makefile such that the $cccdlflags is properly interpreted by
the Makefile and that the string substitution (or whatever that sed
statement is doing) is properly executed. I have thought about perhaps
"escaping" the $ with another forward-slash (\), but I am not sure if this
is appropriate.
Thank you.
Dave
The list of my Makefile:
#
# PERL Makefile
#
include ../../make.vars
VERSION = perl-5.8.8
BUILD_DIR = $(VERSION)
CONFIG_ARGS = --prefix=/usr \
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dpager="/bin/less -isR" \
-Dusethreads
include ../../make.rules
$(VERSION).configure: $(VERSION).patched
cd $(BUILD_DIR); sed -i -e
"[EMAIL PROTECTED]''@pldlflags=\"\$cccdlflags\"@g"
\
-e "[EMAIL PROTECTED]'static'@static_target='static_pic'@g"
Makefile.SH
echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
cd $(BUILD_DIR); ./configure.gnu $(CONFIG_ARGS)
touch $@
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support