You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.8 KiB
45 lines
1.8 KiB
diff -up perl-5.24.4/Makefile.SH.orig perl-5.24.4/Makefile.SH
|
|
--- perl-5.24.4/Makefile.SH.orig 2018-10-02 12:18:23.627226701 +0200
|
|
+++ perl-5.24.4/Makefile.SH 2018-10-02 13:35:03.858920366 +0200
|
|
@@ -451,6 +451,8 @@ CCCMD = sh $(shellflags) cflags "opti
|
|
|
|
CCCMDSRC = sh $(shellflags) cflags "optimize='$(OPTIMIZE)'" $<
|
|
|
|
+DTRACEFLAGS = sh $(shellflags) cflags "optimize='$(OPTIMIZE)'" $@
|
|
+
|
|
CONFIGPM_FROM_CONFIG_SH = lib/Config.pm lib/Config_heavy.pl
|
|
CONFIGPM = $(CONFIGPM_FROM_CONFIG_SH) lib/Config_git.pl
|
|
|
|
@@ -865,13 +867,13 @@ mydtrace.h: $(DTRACE_H)
|
|
define)
|
|
$spitshell >>$Makefile <<'!NO!SUBS!'
|
|
$(DTRACE_MINI_O): perldtrace.d $(miniperl_objs_nodt)
|
|
- $(DTRACE) -G -s perldtrace.d -o $(DTRACE_MINI_O) $(miniperl_objs_nodt)
|
|
+ CFLAGS="`$(DTRACEFLAGS)`" $(DTRACE) -G -s perldtrace.d -o $(DTRACE_MINI_O) $(miniperl_objs_nodt)
|
|
|
|
$(DTRACE_PERLLIB_O): perldtrace.d $(perllib_objs_nodt)
|
|
- $(DTRACE) -G -s perldtrace.d -o $(DTRACE_PERLLIB_O) $(perllib_objs_nodt)
|
|
+ CFLAGS="`$(DTRACEFLAGS)`" $(DTRACE) -G -s perldtrace.d -o $(DTRACE_PERLLIB_O) $(perllib_objs_nodt)
|
|
|
|
$(DTRACE_MAIN_O): perldtrace.d perlmain$(OBJ_EXT)
|
|
- $(DTRACE) -G -s perldtrace.d -o $(DTRACE_MAIN_O) perlmain$(OBJ_EXT)
|
|
+ CFLAGS="`$(DTRACEFLAGS)`" $(DTRACE) -G -s perldtrace.d -o $(DTRACE_MAIN_O) perlmain$(OBJ_EXT)
|
|
|
|
!NO!SUBS!
|
|
;;
|
|
diff -up perl-5.24.4/cflags.SH.orig perl-5.24.4/cflags.SH
|
|
--- perl-5.24.4/cflags.SH.orig 2018-10-02 14:37:09.368649895 +0200
|
|
+++ perl-5.24.4/cflags.SH 2018-10-02 14:39:10.785695193 +0200
|
|
@@ -518,7 +518,10 @@ for file do
|
|
esac
|
|
|
|
# Can we perhaps use $ansi2knr here
|
|
- echo "$cc -c -DPERL_CORE $ccflags $stdflags $optimize $warn $extra"
|
|
+ case "$file" in
|
|
+ dtrace_*) echo "$ccflags $stdflags $optimize $warn $extra";;
|
|
+ *) echo "$cc -c -DPERL_CORE $ccflags $stdflags $optimize $warn $extra"
|
|
+ esac
|
|
|
|
. $TOP/config.sh
|
|
|