Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed question



> Sounds like you are trying to hack an autoconf generated file.
> I think you can specify extra libs to use on the command line when
> running "configure". Maybe something like
>    LIBS=-lnetinet ./configure
> 

Thats exactly right, it is the configure script for ddd-3.3.1 .  I did
this(LIBS=-lnetinet) via setting the CXXFLAGS environment variable
before running the configure script.  Doing this included the netinet
lib in the g++ linking stage when I ran the configure script, it was
always placed near the start of the libs to include.  I have seen
sometimes that the order of the libs make a difference, so I placed the
-lnetinet at the end of the libs to include(with a bit of help from
tlug).  After placing it at the end of the libs to include, the error
was not there, yeah! but another has subsequently sprung up :( So I am
now trying to get past this new hurdle.

> And from the "friends don't let friends drive sed" camp:
>    perl -wp -e 's/^LIBS="\$ac_save_LIBS"/LIBS="\$ac_save_LIBS
>       -lnetinet"/g' < infile > outtfile
> 

As for perl,  on this box I am not privileged to have this tool at my
disposal.   I guess I could have copied it to my local machine and done
it, but its probably a good thing to know how to do in sed.

Cheers

Tony


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links