From 736d447380f5d7b2d6376b243ad107f79c0df7a2 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 23 Dec 2010 11:08:50 +0000 Subject: [PATCH] Solaris doesn't support -rdynamic --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 08f93f7af..17fc435bf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,9 +8,11 @@ OPTIMIZATION?=-O2 ifeq ($(uname_S),SunOS) CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -Wall -W -D__EXTENSIONS__ -D_XPG6 CCLINK?= -ldl -lnsl -lsocket -lm -lpthread + DEBUG?= -g -ggdb else CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -Wall -W $(ARCH) $(PROF) CCLINK?= -lm -pthread + DEBUG?= -g -rdynamic -ggdb endif ifeq ($(USE_TCMALLOC),yes) @@ -18,7 +20,6 @@ ifeq ($(USE_TCMALLOC),yes) CFLAGS+= -DUSE_TCMALLOC endif CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF) -DEBUG?= -g -rdynamic -ggdb PREFIX= /usr/local INSTALL_BIN= $(PREFIX)/bin