From 38a5b53f55fbccced9b6f4bc0134dcbfe5fe39d0 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Thu, 3 Jul 2014 00:58:04 -0500 Subject: Fix compile for endian calls on old host GCC Change-Id: I27e18a424ba4bad7dbd33cd17a5c23c65269f51a Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11958 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/usr/errl/parser/makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/usr/errl/parser') diff --git a/src/usr/errl/parser/makefile b/src/usr/errl/parser/makefile index d7d8ece74..e008e6974 100644 --- a/src/usr/errl/parser/makefile +++ b/src/usr/errl/parser/makefile @@ -5,7 +5,9 @@ # # OpenPOWER HostBoot Project # -# COPYRIGHT International Business Machines Corp. 2011,2014 +# Contributors Listed Below - COPYRIGHT 2011,2014 +# [+] International Business Machines Corp. +# # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -43,7 +45,11 @@ ERRLPARSE_TARGETS = \ ${GENDIR}/plugins/hbfwUdIds.H \ ${GENDIR}/plugins/makefile -CC=$(HOST_PREFIX)g++ -m32 -static +ifndef OPENPOWER_BUILD + ERRL_LINK_STATIC = -static +endif + +CC=$(HOST_PREFIX)g++ -m32 $(ERRL_LINK_STATIC) CFLAGS:=-g -O0 -I $(ROOTPATH)/src/include/usr -I ${GENDIR} all: GEN_PASS CODE_PASS -- cgit v1.2.1