diff --git a/src/makefile.osx-high-sierra b/src/makefile.osx-high-sierra index 2e33dd8b..91a911eb 100644 --- a/src/makefile.osx-high-sierra +++ b/src/makefile.osx-high-sierra @@ -1,6 +1,6 @@ # -*- mode: Makefile; -*- -# Copyright (c) 2009 - 2022 Bitcoin Developers -# Copyright (c) 2015 - 2022 The Litedoge developers +# Copyright (c) 2009 - 2024 Bitcoin Developers +# Copyright (c) 2015 - 2024 The Litedoge developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -53,13 +53,13 @@ LIBS += \ -lz endif -DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE +DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS ifdef RELEASE # Compile for maximum compatibility and smallest size. # This requires that dependencies are compiled # the same way. -CFLAGS = -mmacosx-version-min=10.5 -arch x86_64 -O2 -msse2 +CFLAGS = -O2 -msse2 else CFLAGS = -g -msse2 endif @@ -121,11 +121,7 @@ ifeq (${USE_WALLET}, 1) obj/rpcwallet.o \ obj/wallet.o \ obj/walletdb.o -endif -ifndef USE_UPNP - override USE_UPNP = - -endif ifneq (${USE_UPNP}, -) DEFS += -DUSE_UPNP=$(USE_UPNP) ifdef STATIC @@ -133,16 +129,19 @@ ifdef STATIC else LIBS += -lminiupnpc endif -endif all: litedoged +# +# LevelDB support +# +ifdef USE_LEVELDB LIBS += $(CURDIR)/leveldb/libleveldb.a $(CURDIR)/leveldb/libmemenv.a -DEFS += $(addprefix -I,$(CURDIR)/leveldb/include) +DEFS += $(addprefix -I,$(CURDIR)/leveldb/include) -DUSE_LEVELDB DEFS += $(addprefix -I,$(CURDIR)/leveldb/helpers) OBJS += obj/txdb-leveldb.o leveldb/libleveldb.a: - @echo "Building LevelDB ..."; cd leveldb; make libleveldb.a libmemenv.a; cd .. + @echo "Building LevelDB ..."; cd leveldb; CC=$(CC) CXX=$(CXX) make; cd .. obj/txdb-leveldb.o: leveldb/libleveldb.a # auto-generated dependencies: