view src/of-strings-1-fixes.patch @ 6036:9ccca4b29aa3 release

gcc, mingw-w64: Set Windows API to Windows 7 for all Octave targets. * src/build-gcc.mk, src/mingw-w64.mk: Set Windows API to Windows 7 for all Octave targets (including "release-octave").
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 06 Jan 2022 12:59:14 +0100
parents 5732a63f3182
children
line wrap: on
line source

diff -ur strings-1.2.0.orig/src/Makefile strings-1.2.0/src/Makefile
--- strings-1.2.0.orig/src/Makefile	2015-06-08 13:43:45.551556353 -0400
+++ strings-1.2.0/src/Makefile	2015-06-08 13:45:22.693478306 -0400
@@ -1,11 +1,7 @@
 OCTAVE ?= octave
 MKOCTFILE ?= mkoctfile -Wall
 
-PCRE_SWITCHES := $(shell $(OCTAVE) \
-	--no-gui --no-init-file --no-site-file --silent --no-history \
-	--eval 'disp (octave_config_info ("PCRE_LIBS"));' \
-	--eval 'disp (octave_config_info ("PCRE_CPPFLAGS"));' \
-	)
+PCRE_SWITCHES := $(shell pcre-config --libs)
 
 pcregexp.oct: %.oct: %.cc
 	$(MKOCTFILE) $(PCRE_SWITCHES) -o $@ $<