Skip to content

Instantly share code, notes, and snippets.

@adsr
Created November 29, 2020 01:56
Show Gist options
  • Select an option

  • Save adsr/4967cd98e07152391ec81c7dcaff6c89 to your computer and use it in GitHub Desktop.

Select an option

Save adsr/4967cd98e07152391ec81c7dcaff6c89 to your computer and use it in GitHub Desktop.
diff --git a/Makefile b/Makefile
index f53eef2..a7581bb 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,8 @@ termbox_ld_soname:=soname
termbox_a:=libtermbox.a
termbox_h:=termbox.h
-ifeq ($(shell uname), Darwin)
+$(shell $(LD) -install_name x /dev/null 2>/dev/null)
+ifeq ($(.SHELLSTATUS), 0)
termbox_so:=libtermbox.dylib
termbox_so_x:=libtermbox.$(termbox_so_version_abi).dylib
termbox_so_x_y_z:=libtermbox.$(termbox_so_version_abi).$(termbox_so_version_minor_patch).dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment