Appending LIb and include paths
"Raghavendra Prasad" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I configured twice with the following options - for comparison
./configure '--with-persistent-directory=/data/projects/cdspr/sw/snmp/var/net-snmp'
'--with-sys-location=izt'
'--with-logfile=/data/projects/cdspr/sw/snmp/var/log/snmpd.log'
'--with-sys-contact=izt' '--with-default-snmp-version=2c'
'--prefix=/data/projects/cdspr/sw/snmp'
'--exec-prefix=/data/projects/cdspr/sw/snmp'
'--includedir=/data/projects/cdspr/sw/common/include/gamma'
'--libdir=/data/projects/cdspr/sw/common/gammalibs-0BETA_20080428/x86'
'--with-cflags=-Wall -Wshadow -Wunreachable-code -W -g -ggdb'
AND
./configure '--with-persistent-directory=/data/projects/cdspr/sw/snmp/var/net-snmp'
'--with-sys-location=izt'
'--with-logfile=/data/projects/cdspr/sw/snmp/var/log/snmpd.log'
'--with-sys-contact=izt' '--with-default-snmp-version=2c'
'--prefix=/data/projects/cdspr/sw/snmp'
'--exec-prefix=/data/projects/cdspr/sw/snmp'
The diff between these two Makefiles gives the following output:
< libdir =
/data/projects/cdspr/sw/common/gammalibs-0BETA_20080428/x86
---
> libdir = ${exec_prefix}/lib
19,20c19,20
< includedir = /data/projects/cdspr/sw/common/include/gamma/net-snmp
< ucdincludedir = /data/projects/cdspr/sw/common/include/gamma/ucd-snmp
---
> includedir = ${prefix}/include/net-snmp
> ucdincludedir = ${prefix}/include/ucd-snmp
50c50
< CFLAGS = -Wall -Wshadow -Wunreachable-code -W -g
-ggdb -Ulinux -Dlinux=linux -I/usr/include/rpm
---
> CFLAGS = -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm
Evidently the compiler options like "includedir" and "libdir" are
overwriting the standard paths - I did not wanted this. I want to
append "includedir" and "libdir" to the standard paths instead of
overwriting, since my libraries and includes are present in both
standard and configured paths.
Well manually editing Makefiles is one option. But I intend to
accomplish this with ./configure step itself (this is a peculiar
requirement in our project)
Please help
With regards,
Raghavendra
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users