Skip to content

Commit

Permalink
Update makefile.osx
Browse files Browse the repository at this point in the history
  • Loading branch information
vashshawn authored Oct 2, 2023
1 parent 89cfc03 commit cab9612
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/makefile.osx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ LIBPATHS= \

USE_UPNP:=1
USE_WALLET:=1
USE_LEVELDB:=0
USE_IPV6:=1

LIBS= -dead_strip

Expand Down Expand Up @@ -54,7 +56,7 @@ 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
Expand Down Expand Up @@ -116,7 +118,6 @@ ifeq (${USE_WALLET}, 1)
obj/rpcwallet.o \
obj/wallet.o \
obj/walletdb.o
endif

ifndef USE_UPNP
override USE_UPNP = -
Expand All @@ -126,14 +127,21 @@ ifneq (${USE_UPNP}, -)
ifdef STATIC
LIBS += $(DEPSDIR)/lib/libminiupnpc.a
else
LIBS += -lminiupnpc
LIBS += -lminiupnpc
endif

ifneq (${USE_IPV6}, -)
DEFS += -DUSE_IPV6=$(USE_IPV6)
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:
Expand Down

0 comments on commit cab9612

Please sign in to comment.