1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00

Respect system ${CFLAGS} when building Perl modules.

bsd.obj.mk -> bsd.prog.mk in modules makefiles, as the
latter automatically includes ../Makefile.inc and adds
-I${DESTDIR}/usr/include to ${CFLAGS} needed for "make
world" which is built with -nostdinc.

Reviewed by:	MAINTAINER timeout
This commit is contained in:
Ruslan Ermilov 2001-10-19 12:58:22 +00:00
parent d2f659e3f9
commit 1680d03276
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85158
21 changed files with 23 additions and 43 deletions

View File

@ -60,8 +60,8 @@ links: ${DEPEND_H}
@ln -sf ${PERL5SRC}/writemain.SH writemain.sh @ln -sf ${PERL5SRC}/writemain.SH writemain.sh
@ln -sf ${PERL5SRC}/regcomp.c regcomp.c @ln -sf ${PERL5SRC}/regcomp.c regcomp.c
@ln -sf ${PERL5SRC}/regexec.c regexec.c @ln -sf ${PERL5SRC}/regexec.c regexec.c
@ln -sf ${PERL5LIBSRC}/config.SH-${OBJFORMAT}.${MACHINE_ARCH} \ @sed "s;^optimize=.*$$;optimize=\'${CFLAGS}\';" \
config.sh ${PERL5LIBSRC}/config.SH-${OBJFORMAT}.${MACHINE_ARCH} > config.sh
@touch ${.TARGET} @touch ${.TARGET}
scripts: links scripts: links
@ -92,7 +92,7 @@ MAKEMAKER_ARGS?= INSTALLDIRS=perl PERL_SRC=${.OBJDIR} \
PERL=${MINIPERL} FULLPERL=perl DEFINE=-I${DESTDIR}/usr/include \ PERL=${MINIPERL} FULLPERL=perl DEFINE=-I${DESTDIR}/usr/include \
DEFINE=-DPERL_CORE DEFINE=-DPERL_CORE
CFLAGS+= '-DAPPLLIB_EXP="/usr/libdata/perl/BSDPAN"' CFLAGS+= -DAPPLLIB_EXP=\"/usr/libdata/perl/BSDPAN\"
.if defined(PERL_DEBUGGING) && ${PERL_DEBUGGING} == "true" .if defined(PERL_DEBUGGING) && ${PERL_DEBUGGING} == "true"
CFLAGS+= -DDEBUGGING CFLAGS+= -DDEBUGGING

View File

@ -2,5 +2,4 @@
MODULE= B MODULE= B
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= ByteLoader MODULE= ByteLoader
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= DB_File MODULE= DB_File
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -3,5 +3,4 @@
MODULE= DProf MODULE= DProf
MODULEDIR= Devel/DProf MODULEDIR= Devel/DProf
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -3,5 +3,4 @@
MODULE= Dumper MODULE= Dumper
MODULEDIR= Data/Dumper MODULEDIR= Data/Dumper
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= Errno MODULE= Errno
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= Fcntl MODULE= Fcntl
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -3,5 +3,4 @@
MODULE= Glob MODULE= Glob
MODULEDIR= File/Glob MODULEDIR= File/Glob
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -3,5 +3,4 @@
MODULE= Hostname MODULE= Hostname
MODULEDIR= Sys/Hostname MODULEDIR= Sys/Hostname
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= IO MODULE= IO
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= NDBM_File MODULE= NDBM_File
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= Opcode MODULE= Opcode
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= POSIX MODULE= POSIX
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -3,5 +3,4 @@
MODULE= Peek MODULE= Peek
MODULEDIR= Devel/Peek MODULEDIR= Devel/Peek
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= SDBM_File MODULE= SDBM_File
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= Socket MODULE= Socket
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -3,5 +3,4 @@
MODULE= SysV MODULE= SysV
MODULEDIR= IPC/SysV MODULEDIR= IPC/SysV
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -3,5 +3,4 @@
MODULE= Syslog MODULE= Syslog
MODULEDIR= Sys/Syslog MODULEDIR= Sys/Syslog
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= attrs MODULE= attrs
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>

View File

@ -2,5 +2,4 @@
MODULE= re MODULE= re
.include "../Makefile.inc" .include <bsd.prog.mk>
.include <bsd.obj.mk>