static linking on Linux,
Pavan Kumar Kakunoori <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello team, I am attempting to perform static linking of installed agent
libraries with my application, in below way being in the Makefile
NETSNMPLIBS=`$(NETSNMPCONFIG) --agent-libs`
#NETSNMPLIBDEPS := $(shell $(NETSNMPCONFIG) --build-lib-deps $(NETSNMPDIR))
#LIB_DEPS=$(NETSNMPLIBDEPS)
LIBS=$(NETSNMPLIBDIRS) -Wl,-static $(NETSNMPBASELIBS) -Wl
But the below error is seen while compiling it
Considering target file `-Wl,-static'.
File `-Wl,-static' does not exist.
Looking for an implicit rule for `-Wl,-static'.
Trying pattern rule with stem `-Wl,-static'.
Trying implicit prerequisite `RCS/-Wl,-static'.
Trying pattern rule with stem `-Wl,-static'.
Trying implicit prerequisite `s.-Wl,-static'.
Trying pattern rule with stem `-Wl,-static'.
Trying implicit prerequisite `SCCS/s.-Wl,-static'.
No implicit rule found for `-Wl,-static'.
Finished prerequisites of target file `-Wl,-static'.
Must remake target `-Wl,-static'.
make: *** No rule to make target `-Wl,-static', needed by
`/irb/dev1/fmeh6863/RB-RB_fm_5.1.3.linux.oracle11g/RB/OPERABILITY/bin/rbsubagent'.
Stop.
Is there any issue with my Makefile? Please help me out.
Thanks,
Pavan
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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