Skip to content

Commit

Permalink
fixup! WIP: libevent testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Jul 30, 2023
1 parent 6aa0d33 commit 01c0815
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/libevent
4 changes: 4 additions & 0 deletions configure/CONFIG_SITE
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ CHECK_RELEASE = YES
USR_CPPFLAGS_WIN32 += -DNOMINMAX -D_WIN32_WINNT=_WIN32_WINNT_VISTA

USR_CPPFLAGS += -DUSE_TYPED_RSET

ifndef BASE_3_15
CAT ?= $(PERL) -MExtUtils::Command -e cat
endif
3 changes: 3 additions & 0 deletions configure/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ TOOLCHAIN: toolchain.c
$(CPP) $(CPPFLAGS) $(INCLUDES) ../toolchain.c > $@.tmp
$(CPP) $(CPPFLAGS) $(INCLUDES) ../probe-openssl.c > probe-openssl.out && echo "EVENT2_HAS_OPENSSL = YES" >> $@.tmp || echo "No OpenSSL"
$(MV) $@.tmp $@
$(ECHO) ">>> $@"
$(CAT) $@
$(ECHO) "<<< $@"

endif
1 change: 1 addition & 0 deletions setup/CONFIG_PVXS_MODULE
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ INCLUDES += $(if $(LIBEVENT_PREFIX),-I$(LIBEVENT_PREFIX)/include)

LIBEVENT_BUNDLE_LDFLAGS_Darwin_NO = $(if $(LIBEVENT_PREFIX),-Wl,-rpath,$(LIBEVENT_PREFIX)/lib)
LIBEVENT_BUNDLE_LDFLAGS += $(LIBEVENT_BUNDLE_LDFLAGS_$(OS_CLASS)_$(STATIC_BUILD))
$(info XXX LIBEVENT_PREFIX=$(LIBEVENT_PREFIX) LIBEVENT_BUNDLE_LDFLAGS=$(LIBEVENT_BUNDLE_LDFLAGS))

event_core_DIR = $(LIBEVENT_PREFIX)/lib
event_openssl_DIR = $(LIBEVENT_PREFIX)/lib
Expand Down
3 changes: 3 additions & 0 deletions setup/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@ EXPAND_ARGS += "-DLIBEVENT_SYS_LIBS=$(_LIBEVENT_SYS_LIBS)"

TOOLCHAIN_PVXS.$(T_A): ../TOOLCHAIN_PVXS.target@
$(EXPAND_TOOL) $(EXPAND_ARGS) $< $@
$(ECHO) ">>> $@"
$(CAT) $@
$(ECHO) "<<< $@"

endif
2 changes: 2 additions & 0 deletions setup/RULES_PVXS_MODULE
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ifeq (,$(LIBEVENT_PREFIX))
define _PVXS_ADD_LIBEVENT
$(1)_SYS_LIBS := $$($(1)_SYS_LIBS) $$(if $$(filter pvxs,$$($(1)_LIBS)),$$(LIBEVENT_BUNDLE_LIBS))
$(1)_SYS_LIBS := $$($(1)_SYS_LIBS) $$(if $$(filter pvxs,$$($(1)_LIBS)),$$(LIBEVENT_SYS_LIBS))
$(info AAA $(1) $$(filter pvxs,$$($(1)_LIBS)))
endef

else
Expand All @@ -28,6 +29,7 @@ define _PVXS_ADD_LIBEVENT
$(1)_LIBS := $$($(1)_LIBS) $$(if $$(filter pvxs,$$($(1)_LIBS)),$$(LIBEVENT_BUNDLE_LIBS))
$(1)_SYS_LIBS := $$($(1)_SYS_LIBS) $$(if $$(filter pvxs,$$($(1)_LIBS)),$$(LIBEVENT_SYS_LIBS))
$(1)_LDFLAGS := $$($(1)_LDFLAGS) $$(if $$(filter pvxs,$$($(1)_LIBS)),$$(LIBEVENT_BUNDLE_LDFLAGS))
$(info BBB $(1) $$(filter pvxs,$$($(1)_LIBS)))
endef

endif
Expand Down

0 comments on commit 01c0815

Please sign in to comment.