1
0
mirror of https://github.com/open-simh/simh.git synced 2026-02-27 01:10:17 +00:00

makefile: Allow building shared memory applications

This commit is contained in:
Mark Pizzolato
2018-07-21 03:00:36 -07:00
parent a644a6e5ca
commit beaae0b945

View File

@@ -332,6 +332,12 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
$(info using semaphore: $(call find_include,semaphore))
endif
endif
ifneq (,$(call find_include,sys/mman))
ifneq (,$(shell grep shm_open $(call find_include,sys/mman)))
OS_CCDEFS += -DHAVE_SHM_OPEN
$(info using mman: $(call find_include,sys/mman))
endif
endif
ifneq (,$(call find_include,dlfcn))
ifneq (,$(call find_lib,dl))
OS_CCDEFS += -DHAVE_DLOPEN=$(LIBEXT)