Skip to content

Commit 89cfc03

Browse files
authored
Update makefile.osx-high-sierra
1 parent 44837e8 commit 89cfc03

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/makefile.osx-high-sierra

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- mode: Makefile; -*-
2-
# Copyright (c) 2009 - 2022 Bitcoin Developers
3-
# Copyright (c) 2015 - 2022 The Litedoge developers
2+
# Copyright (c) 2009 - 2024 Bitcoin Developers
3+
# Copyright (c) 2015 - 2024 The Litedoge developers
44
# Distributed under the MIT/X11 software license, see the accompanying
55
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
66

@@ -53,13 +53,13 @@ LIBS += \
5353
-lz
5454
endif
5555

56-
DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE
56+
DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS
5757

5858
ifdef RELEASE
5959
# Compile for maximum compatibility and smallest size.
6060
# This requires that dependencies are compiled
6161
# the same way.
62-
CFLAGS = -mmacosx-version-min=10.5 -arch x86_64 -O2 -msse2
62+
CFLAGS = -O2 -msse2
6363
else
6464
CFLAGS = -g -msse2
6565
endif
@@ -121,28 +121,27 @@ ifeq (${USE_WALLET}, 1)
121121
obj/rpcwallet.o \
122122
obj/wallet.o \
123123
obj/walletdb.o
124-
endif
125124

126-
ifndef USE_UPNP
127-
override USE_UPNP = -
128-
endif
129125
ifneq (${USE_UPNP}, -)
130126
DEFS += -DUSE_UPNP=$(USE_UPNP)
131127
ifdef STATIC
132128
LIBS += $(DEPSDIR)/lib/libminiupnpc.a
133129
else
134130
LIBS += -lminiupnpc
135131
endif
136-
endif
137132

138133
all: litedoged
139134

135+
#
136+
# LevelDB support
137+
#
138+
ifdef USE_LEVELDB
140139
LIBS += $(CURDIR)/leveldb/libleveldb.a $(CURDIR)/leveldb/libmemenv.a
141-
DEFS += $(addprefix -I,$(CURDIR)/leveldb/include)
140+
DEFS += $(addprefix -I,$(CURDIR)/leveldb/include) -DUSE_LEVELDB
142141
DEFS += $(addprefix -I,$(CURDIR)/leveldb/helpers)
143142
OBJS += obj/txdb-leveldb.o
144143
leveldb/libleveldb.a:
145-
@echo "Building LevelDB ..."; cd leveldb; make libleveldb.a libmemenv.a; cd ..
144+
@echo "Building LevelDB ..."; cd leveldb; CC=$(CC) CXX=$(CXX) make; cd ..
146145
obj/txdb-leveldb.o: leveldb/libleveldb.a
147146

148147
# auto-generated dependencies:

0 commit comments

Comments
 (0)