Skip to content

Commit

Permalink
fix for mac build error
Browse files Browse the repository at this point in the history
closes rofl0r#6
  • Loading branch information
rofl0r committed Dec 18, 2012
1 parent 5ecd5ac commit ab4fb35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ LOBJS = src/nameinfo.o \
src/hostentdb.o src/hash.o

CFLAGS += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe
LDFLAGS = -shared -fPIC -Wl,--no-as-needed -ldl -lpthread
NO_AS_NEEDED = -Wl,--no-as-needed
LDFLAGS = -shared -fPIC $(NO_AS_NEEDED) -ldl -lpthread
INC =
PIC = -fPIC
AR = $(CROSS_COMPILE)ar
Expand Down
1 change: 1 addition & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ echo libdir=$libdir>>config.mak
echo includedir=$includedir>>config.mak
echo sysconfdir=$sysconfdir>>config.mak
if ismac ; then
echo NO_AS_NEEDED=>>config.mak
echo LDSO_SUFFIX=dylib>>config.mak
echo MAC_CFLAGS+=-DIS_MAC=1>>config.mak
echo LD_SET_SONAME=-Wl,-install_name,>>config.mak
Expand Down

0 comments on commit ab4fb35

Please sign in to comment.