Experimental Physics and Industrial Control System
Hi Martin,
On 05/19/2014 12:45 PM, Konrad, Martin wrote:
> However, if I run make "USR_CXXFLAGS_Linux=-Werror=format-security" (one
> of the parameters used when compiling Michael's Debian package), g++ is
> not called with "-DALLOW_CAPUTLOG" anymore. It seems to ignore the
> CAPUTLOG entry in the configure/RELEASE file.
>
> Am I missing something or is this a bug?
This is a bug in the putlog modification to the gateway/Makefile:
> === modified file 'Makefile'
> --- Makefile 2009-09-17 15:45:45 +0000
> +++ Makefile 2014-04-15 19:56:08 +0000
> @@ -144,6 +144,14 @@
> # need access to casCtx.h
> USR_INCLUDES += -I$(EPICS_BASE)/src/cas/generic
>
> +# To compile in caPutLog functionality, define the location of the caPutLog
> +# module as 'CAPUTLOG' in the appropriate extensions configure/RELEASE* file
> +ifdef CAPUTLOG
> + USR_LIBS_DEFAULT += caPutLog dbIoc
> + USR_CXXFLAGS_DEFAULT += -DWITH_CAPUTLOG
> + USR_CFLAGS_DEFAULT += -DWITH_CAPUTLOG
> +endif
> +
> PROD_HOST = gateway
This patch sets the _DEFAULT version of the USR_xxxx variables. This
means that as soon as one of the OS-specific variables gets set such as
you are doing on the command-line, the build system will no longer make
use of the _DEFAULT version of that variable. This is discussed in
section 4.3.6 of the Application Developers Guide
http://www.aps.anl.gov/epics/base/R3-14/12-docs/AppDevGuide/node5.html#SECTION00560000000000000000
You need to remove _DEFAULT from the names of all the USR_xxx variables
you set in the Makefile so you just set USR_LIBS, USR_CFLAGS and
USR_CXXFLAGS.
- Andrew
--
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock
- References:
- RELEASE macro vanishes if USR_CXXFLAGS_Linux is set Konrad, Martin
- Navigate by Date:
- Prev:
Re: RELEASE macro vanishes if USR_CXXFLAGS_Linux is set Bob Soliday
- Next:
Re: RELEASE macro vanishes if USR_CXXFLAGS_Linux is set Konrad, Martin
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: RELEASE macro vanishes if USR_CXXFLAGS_Linux is set Bob Soliday
- Next:
Re: RELEASE macro vanishes if USR_CXXFLAGS_Linux is set Konrad, Martin
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024