Monday, May 28, 2018 10:09 PM > When I tried to compile this, it failed because I didn't have > libsnmp-dev installed. This will be the first library dependency that > linuxptp ever had (other than the C library). I want the project to > still compile even without libsnmp.
> Please extend the `incdefs.sh` script to test for the presence of > libsnmp. If it isn't found, then the compilation should continue > normally, simply omitting the snmp feature. >> +SNMPAGENTLIBS = `net-snmp-config --agent-libs` > For this you should invent a new shell script that tests whether libsnmp > is present and delivers the linker flags as appropriate. > So the makefile might look like this: > LDLIBS = -lm -lrt $(ldlibs) $(EXTRA_LDFLAGS) > ... > incdefs := $(shell $(srcdir)/incdefs.sh) > ldlibs := $(shell $(srcdir)/ldlibs.sh) I will fix. Thanks /Anders ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxptp-devel
