From 123a398f7534b3ed84b523e8afe1dc17352b8261 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 24 Jan 2013 17:26:41 -0800 Subject: [PATCH] Fixed makefile for building tx-0 (with display support) on OSX - from Stephen Hoffmann --- makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/makefile b/makefile index 16317b51..4a3abbae 100644 --- a/makefile +++ b/makefile @@ -106,6 +106,10 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) LIBPATH += /opt/local/lib OS_LDFLAGS += -L/opt/local/lib endif + ifeq (libXt,$(shell if $(TEST) -d /usr/X11/lib; then echo libXt; fi)) + LIBPATH += /usr/X11/lib + OS_LDFLAGS += -L/usr/X11/lib + endif # OSX's XCode gcc doesn't support LTO, but gcc built to explicitly enable it will work ifneq (,$(GCC_VERSION)) ifeq (,$(shell $(GCC) -v /dev/null 2>&1 | grep '\-\-enable-lto'))