mirror of
https://github.com/open-simh/simh.git
synced 2026-05-23 05:52:09 +00:00
MAKEFILE: Move PCRE2 library path search earlier
Don't put "-L" linker options after the "-l" library. Move the search for libpcre2-8 before "-lpcre2-8" is added to OS_LDFLAGS.
This commit is contained in:
committed by
Paul Koning
parent
24cd66782e
commit
774a74ffa4
9
makefile
9
makefile
@@ -617,11 +617,14 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
|
||||
PCRE2_LIB=pcre2-8
|
||||
ifneq (,$(call find_lib,${PCRE2_LIB}))
|
||||
OS_CCDEFS += -DHAVE_PCRE2_H
|
||||
ifeq ($(LD_SEARCH_NEEDED),$(call need_search,${PCRE2_LIB}))
|
||||
PCRE2_LIBPATH = $(dir $(call find_lib,${PCRE2_LIB}))
|
||||
ifneq (,${PCRE2_LIBPATH})
|
||||
OS_LDFLAGS += -L${PCRE2_LIBPATH}
|
||||
endif
|
||||
endif
|
||||
OS_LDFLAGS += -l${PCRE2_LIB}
|
||||
$(info using libpcre2-8: $(call find_lib,${PCRE2_LIB}) $(call find_include,pcre2))
|
||||
ifeq ($(LD_SEARCH_NEEDED),$(call need_search,${PCRE2_LIB}))
|
||||
OS_LDFLAGS += -L$(dir $(call find_lib,${{PCRE2_LIB}}))
|
||||
endif
|
||||
FALLBACK_PCRE=
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user