From d94db2b7e2233137dff57159eb40671d505fbcd5 Mon Sep 17 00:00:00 2001 From: "Ehsan M.Kermani" Date: Mon, 16 Apr 2018 08:31:52 -0700 Subject: [PATCH] add -ldl flag --- c-to-rust/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-to-rust/Makefile b/c-to-rust/Makefile index 0e9dce1..d46e3d5 100644 --- a/c-to-rust/Makefile +++ b/c-to-rust/Makefile @@ -1,7 +1,7 @@ ifeq ($(shell uname),Darwin) LDFLAGS := -Wl,-dead_strip else - LDFLAGS := -Wl,--gc-sections -lpthread + LDFLAGS := -Wl,--gc-sections -lpthread -ldl endif all: target/double