Skip to content

Commit

Permalink
mk: move darwin dns LFLAGS to re.mk (fixes static builds) (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers authored Dec 31, 2021
1 parent 003060f commit ddedd2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions mk/re.mk
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ endif
DFLAGS := -MD
LIBS += -lresolv
LFLAGS += -fPIC
# add libraries for darwin dns servers
LFLAGS += -framework SystemConfiguration \
-framework CoreFoundation
SH_LFLAGS += -dynamiclib
ifeq ($(CC_NAME),gcc)
SH_LFLAGS += -dylib
Expand Down
2 changes: 0 additions & 2 deletions src/dns/mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ endif

ifeq ($(OS),darwin)
SRCS += dns/darwin/srv.c
# add libraries for darwin dns servers
LFLAGS += -framework SystemConfiguration -framework CoreFoundation
endif

0 comments on commit ddedd2f

Please sign in to comment.