Merge pull request #22645 from yggdrasil-openwrt/yggdrasil-2023-11-11
[feed/packages.git] / lang / perl / patches / 910-miniperl-needs-inc-dot.patch
1 --- a/Makefile.SH
2 +++ b/Makefile.SH
3 @@ -346,7 +346,7 @@ OBJ_EXT = $_o
4 # Macros to invoke a copy of miniperl during the build. Targets which
5 # are built using these macros should depend on \$(MINIPERL_EXE)
6 MINIPERL_EXE = miniperl\$(EXE_EXT)
7 -MINIPERL = \$(LDLIBPTH) ./miniperl\$(EXE_EXT) -Ilib
8 +MINIPERL = \$(LDLIBPTH) ./miniperl\$(EXE_EXT) -Ilib -I.
9
10 # Macros to invoke sort the MANIFEST during build
11 MANIFEST_SRT = MANIFEST.srt
12 @@ -996,7 +996,7 @@ lib/buildcustomize.pl: $& $(miniperl_obj
13 @$(RMS) miniperl.xok
14 $(CC) $(CLDFLAGS) $(NAMESPACEFLAGS) -o $(MINIPERL_EXE) \
15 $(miniperl_objs) $(libs)
16 - $(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
17 + $(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -I. -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
18 $(MINIPERL) -f write_buildcustomize.pl
19 !NO!SUBS!
20 ;;
21 @@ -1007,7 +1007,7 @@ lib/buildcustomize.pl: \$& \$(miniperl_d
22 @\$(RMS) miniperl.xok
23 @\$(RMS) \$(MINIPERL_EXE)
24 \$(LNS) \$(HOST_PERL) \$(MINIPERL_EXE)
25 - \$(LDLIBPTH) ./miniperl\$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
26 + \$(LDLIBPTH) ./miniperl\$(HOST_EXE_EXT) -w -Ilib -I. -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
27 \$(MINIPERL) -f write_buildcustomize.pl 'osname' "$osname"
28 !GROK!THIS!
29 else
30 @@ -1016,7 +1016,7 @@ lib/buildcustomize.pl: $& $(miniperl_dep
31 @$(RMS) miniperl.xok
32 $(CC) $(CLDFLAGS) -o $(MINIPERL_EXE) \
33 $(miniperl_objs) $(libs)
34 - $(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
35 + $(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -I. -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
36 $(MINIPERL) -f write_buildcustomize.pl
37 !NO!SUBS!
38 fi