I am using Ubuntu 12.10 with gcc version 4.6.3. I am trying to create code and get an error when using the "make" command
g++: error: unrecognized option '--as-needed'
My makefile looks like this:
LFLAGS = -Wl,-rpath,. -Wl,-rpath-link,../bin --as-needed LDFLAGS = $(RPATH) $(RPATHLINK) -L$(USRLIB) --as-needed
Previously, this code was successfully built on RedHat Linux. But now I need to run this code on Ubuntu.
If anyone knows about this. Please, help
Relations Gaurav
source share