pkgsrc-Users archive

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

Re: Option to create statically linked binaries



| From: Christopher Berardi <cberardi%natoufa.com@localhost>
> Is there an option to create a statically linked binary? Would such an option
> be recursive (statically linking all the dependencies of the dependencies)? 

I had just a simple need to build cvs to be static yesterday. 
( I had for su also before).

I felt it would be convenient if we had globally valid
statement such like:
   BUILD_STATIC=        yes
But the following line makes the same thing.
   LDFLAGS+=  -static
Both are just one line change. So I decline the idea.

But I read the quoted line and understand there may be another
needs. Like in /etc/mk.conf
   PKG_BUILD_STATIC=    yes

(Too much work and getting small ? )
Thanks,
---
Makoto Fujiwara, 



Home | Main Index | Thread Index | Old Index