OK, things are getting clearer after studying a bunch of Makefiles and seeing what I have to do to make things happen.
Here's what I know:
1. To build a relocatable library for libCom, I have to pass options "-shared -fPIC" through to g++ when I'm creating the relocatable library. This works fine, and I can create and use the library sort of successfully. I'm still looking for the exact variable to set to pass these values. have tried setting about every variable in my new "CONFIG.Common.netbsd-x86" file, and currently have it set in COMPILER_LDFLAGS. However, when I run gmake with these options selected in COMPILER_LDFLAGS, it will create a properly library, but fails to create a proper executable.
2. To build an executable, I have to be sure NOT to pass the "-shared" option through to g++. I demonstrated that this works by deleting the incorrectly build 'antelope' program that is linked after the library is built, delete the "-shared" flag from my new "CONFIG.Common.netbsd-x86" file and rerun gmake. This will recreate the antelope program, which appears to be functional.
I've moved down to another problem in the 'ca' directory now, probably caused by something I just haven't defined yet, but would like to figure out how to pass the "-shared" flag to the relocatable library creation function, correctly. I don't see anything in Chapter 4 of the Developers Guide about how to do it, so I'll see if anyone has any idea.
Looks like most of the Make files were done by jba (I'm taking that to be Janet Anderson, I hope... She still doing work on this, or anyone have a suggestion?
David Dudley
BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:David Dudley
TEL;WORK:880-3740
ORG:;MIS
TEL;PREF;FAX:880-3741
EMAIL;WORK;PREF;NGW:[email protected]
N:Dudley;David
END:VCARD
- Replies:
- Re: Setting option flags for building system libraries Andrew Johnson
- Navigate by Date:
- Prev:
RE: looking for OSI version of epid record Mark Rivers
- Next:
EPICS on NetBSD David Dudley
- 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: NetBSD Port Andrew Johnson
- Next:
Re: Setting option flags for building system libraries Andrew Johnson
- 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
|