Skip to content

Commit

Permalink
fix #136
Browse files Browse the repository at this point in the history
  • Loading branch information
zacky1972 committed May 12, 2020
1 parent 4cea413 commit 7d8ff11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pelemay/generator/builder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ defmodule Pelemay.Generator.Builder do
TARGET = ../priv/#{Generator.libnif_name(module)}.so
CFLAGS += -fPIC
ifeq ($(shell uname),Darwin)
CFLAGS += -I`xcrun --show-sdk-path 2>/dev/null`/usr/include
LDFLAGS += -L`xcrun --show-sdk-path 2>/dev/null`/usr/lib
ifndef CROSSCOMPILE
LDFLAGS += -dynamiclib -undefined dynamic_lookup
endif
Expand Down

0 comments on commit 7d8ff11

Please sign in to comment.