Skip to content

Commit

Permalink
Merge pull request #1 from stroxler/master
Browse files Browse the repository at this point in the history
Fix broken dynamic library compile on osx
  • Loading branch information
draffensperger committed Apr 14, 2017
2 parents a3a6957 + d5792be commit 8f58eba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dyn_langs_to_go/go_adder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ UNAME := $(shell uname)

ifeq ($(UNAME), Darwin)
DYLIB_EXT := .dylib
FLAGS := -ldflags -s
else
DYLIB_EXT := .so
FLAGS := ''
endif

libadder$(DYLIB_EXT):
# New in Go 1.5, build Go dynamic lib
go build -o $@ -buildmode=c-shared
go build $(FLAGS) -o $@ -buildmode=c-shared

clean:
rm -f libadder.*

0 comments on commit 8f58eba

Please sign in to comment.