Re: Per-Object Flags for Autotool C++ library?

2017-11-05 Thread Mathieu Lirzin
Hello Jeffrey, Jeffrey Walton writes: > On Sat, Nov 4, 2017 at 5:00 PM, Nick Bowler wrote: >> On 11/4/17, Jeffrey Walton wrote: >>> ... >>> One of our driving principles is "things just work". We don't want >>> library users

github: Release distribution, Was: Re: Per-Object Flags for Autotool C++ library?

2017-11-05 Thread Mike Mestnik
On Sat, Nov 04, 2017 at 05:26:57PM -0400, Jeffrey Walton wrote: > > Thanks. If you come across the docs on how to do it, then please pass it on :) > > Here's the closest I have found: > https://www.gnu.org/software/automake/manual/html_node/Basics-of-Distribution.html. > But it lacks a list of

Re: Per-Object Flags for Autotool C++ library?

2017-11-04 Thread Jeffrey Walton
On Sat, Nov 4, 2017 at 5:00 PM, Nick Bowler wrote: > On 11/4/17, Jeffrey Walton wrote: >> ... >> One of our driving principles is "things just work". We don't want >> library users inconvenienced or installing extra software. They should >> be able to sit

Re: Per-Object Flags for Autotool C++ library?

2017-11-04 Thread Nick Bowler
On 11/4/17, Jeffrey Walton wrote: > On Sat, Nov 4, 2017 at 3:56 PM, Nick Bowler wrote: >>> EXTRA_libcryptopp_la_DEPENDENCIES listing the objects worked for Linux >>> and OS X, but not Solaris. For Solaris I needed to drop the leading >>> `EXTRA`, and use

Re: Per-Object Flags for Autotool C++ library?

2017-11-04 Thread Jeffrey Walton
On Sat, Nov 4, 2017 at 3:56 PM, Nick Bowler wrote: > Hello, > >> EXTRA_libcryptopp_la_DEPENDENCIES listing the objects worked for Linux >> and OS X, but not Solaris. For Solaris I needed to drop the leading >> `EXTRA`, and use just `libcryptopp_la_DEPENDENCIES`. > > Is that

Re: Per-Object Flags for Autotool C++ library?

2017-11-04 Thread Nick Bowler
Hello, > EXTRA_libcryptopp_la_DEPENDENCIES listing the objects worked for Linux > and OS X, but not Solaris. For Solaris I needed to drop the leading > `EXTRA`, and use just `libcryptopp_la_DEPENDENCIES`. Is that just because you happen to be running an antique version of Automake on the Solaris

Re: Per-Object Flags for Autotool C++ library?

2017-11-04 Thread Jeffrey Walton
On Fri, Nov 3, 2017 at 3:07 PM, Jeffrey Walton wrote: > On Fri, Nov 3, 2017 at 1:51 PM, Nick Bowler wrote: >> On 11/3/17, Jeffrey Walton wrote: >>> On Thu, Nov 2, 2017 at 6:04 PM, Jeffrey Walton wrote: ... >>>

Re: Per-Object Flags for Autotool C++ library?

2017-11-03 Thread Jeffrey Walton
On Fri, Nov 3, 2017 at 1:51 PM, Nick Bowler wrote: > On 11/3/17, Jeffrey Walton wrote: >> On Thu, Nov 2, 2017 at 6:04 PM, Jeffrey Walton wrote: >>> ... >> The new issue is, the compile stops after about 4 files are compiled. >> Here's

Re: Per-Object Flags for Autotool C++ library?

2017-11-03 Thread Jeffrey Walton
On Fri, Nov 3, 2017 at 1:51 PM, Nick Bowler wrote: > On 11/3/17, Jeffrey Walton wrote: >> On Thu, Nov 2, 2017 at 6:04 PM, Jeffrey Walton wrote: >>> I'm working on adding Autotools to a C++ library and test program. My >>> Automake.am

Re: Per-Object Flags for Autotool C++ library?

2017-11-03 Thread Nick Bowler
On 11/3/17, Jeffrey Walton wrote: > On Thu, Nov 2, 2017 at 6:04 PM, Jeffrey Walton wrote: >> I'm working on adding Autotools to a C++ library and test program. My >> Automake.am has: >> >> >> ... > > I believe I applied Nick and Mathieu correctly. The

Re: Per-Object Flags for Autotool C++ library?

2017-11-03 Thread Jeffrey Walton
On Thu, Nov 2, 2017 at 6:04 PM, Jeffrey Walton wrote: > I'm working on adding Autotools to a C++ library and test program. My > Automake.am has: > > > ... I believe I applied Nick and Mathieu correctly. The project is available at

Re: Per-Object Flags for Autotool C++ library?

2017-11-03 Thread Jeffrey Walton
On Thu, Nov 2, 2017 at 8:37 PM, Nick Bowler wrote: > Hi Jeffrey, > > On 11/2/17, Jeffrey Walton wrote: >> I'm working on adding Autotools to a C++ library and test program. My >> Automake.am has: >> >> lib_LTLIBRARIES = \ >>libcryptopp.la >> >>

Re: Per-Object Flags for Autotool C++ library?

2017-11-03 Thread Jeffrey Walton
On Fri, Nov 3, 2017 at 5:54 AM, Mathieu Lirzin wrote: > Hello, > > Nick Bowler writes: >> >> On 11/2/17, Jeffrey Walton wrote: >>> >>> CPU_FLAG = -msse2 -msse3 -mssse3 >>> libcpu_a_SOURCES = cpu.cpp >>> libcpu_a_CXXFLAGS = $(CXXFLAGS)

Re: Per-Object Flags for Autotool C++ library?

2017-11-03 Thread Mathieu Lirzin
Hello, Nick Bowler writes: > > On 11/2/17, Jeffrey Walton wrote: >> >> CPU_FLAG = -msse2 -msse3 -mssse3 >> libcpu_a_SOURCES = cpu.cpp >> libcpu_a_CXXFLAGS = $(CXXFLAGS) $(CPU_FLAG) > > Note that you should not include $(CXXFLAGS) here. CXXFLAGS is always

Re: Per-Object Flags for Autotool C++ library?

2017-11-02 Thread Nick Bowler
Hi Jeffrey, On 11/2/17, Jeffrey Walton wrote: > I'm working on adding Autotools to a C++ library and test program. My > Automake.am has: > > lib_LTLIBRARIES = \ >libcryptopp.la > > libcryptopp_la_SOURCES = \ >cryptolib.cpp \ >cpu.cpp \ >integer.cpp \ > >

Per-Object Flags for Autotool C++ library?

2017-11-02 Thread Jeffrey Walton
I'm working on adding Autotools to a C++ library and test program. My Automake.am has: lib_LTLIBRARIES = \ libcryptopp.la libcryptopp_la_SOURCES = \ cryptolib.cpp \ cpu.cpp \ integer.cpp \ ... cpu.cpp needs additional flags to enable ISAs on IA-32, Aarch64 and Power7/Power8.