Skip to content

Commit 194cfe2

Browse files
committed
Link to CommonCrypto on Mac
1 parent 4a9a757 commit 194cfe2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
NAME = uuid
44
VERSION := $(shell git describe --tags --always --dirty --match v* | sed 's/^v//')
55
PLATFORM := $(shell uname -s)
6-
CFLAGS = -g -fPIC -Wall -Wextra -Wno-unused-parameter -O2 -lcrypto
6+
CFLAGS = -g -fPIC -Wall -Wextra -Wno-unused-parameter -O2
77
LDFLAGS = -shared
88
DIST_DIR = dist
99
SOURCES := $(wildcard src/*.c)
@@ -15,7 +15,7 @@ ifeq ($(PLATFORM),Darwin)
1515
else
1616
SO_EXT = so
1717
USE_OPENSSL = implicit
18-
LDFLAGS += -luuid
18+
LDFLAGS += -luuid -lcrypto
1919
LIB := $(DIST_DIR)/$(NAME).$(SO_EXT).$(VERSION)
2020
endif
2121

0 commit comments

Comments
 (0)