From b8d23d6e07505742bc8084df6d0f9d87a760dba7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 27 Dec 2007 10:59:43 -0200 Subject: [PATCH] option to use Sun compiler (on lhf account) --- makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/makefile b/makefile index c157b46f..55b7d5d7 100644 --- a/makefile +++ b/makefile @@ -12,22 +12,24 @@ CWARNS= -pedantic -Waggregate-return -Wcast-align \ # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS # -g -DLUA_USER_H='"ltests.h"' # -fomit-frame-pointer #-pg -malign-double -TESTS= -g -DLUA_USER_H='"ltests.h"' +# TESTS= -g -DLUA_USER_H='"ltests.h"' LOCAL = $(TESTS) $(CWARNS) - -CC= gcc -CFLAGS= -Wall $(MYCFLAGS) -O2 -AR= ar rcu -RANLIB= ranlib -RM= rm -f - MYCFLAGS= $(LOCAL) MYLDFLAGS= MYLIBS= +CC= gcc +CFLAGS= -Wall $(MYCFLAGS) -O2 +# CC= ~lhf/sunstudio12/bin/cc +# CFLAGS= -xO5 -v -Xc -native -xstrconst +AR= ar rcu +RANLIB= ranlib +RM= rm -f + + # enable Linux goodies MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX MYLDFLAGS= -Wl,-E