Solved

how to make buildworld with -static flag?

Posted on 2003-11-21
3
244 Views
Last Modified: 2013-12-09
I just found that just about everything in /bin and /sbin is dynamic!  EW!  I liked the 4.x branch because it had a good /bin/sh compiled statically.  Is there a way to specify for make buildworld process to stick the -static flag in there somewhere?
thanks
0
Comment
Question by:bushmannt
3 Comments
 
LVL 61

Accepted Solution

by:
gheist earned 125 total points
ID: 9802756
most likely
/etc/mk.conf:
CFLAGS+=-static


Please do not rebuild all "static", 100+ programs with libc included will be too much...
please read Makefile and respective readme-s, and do not install these programs for running system, ie just make , not make install..
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CPU monthly average? 12 107
Move nodes from one TSM to another. 3 60
building a service to accessed via telnet client, want colors ? 4 82
unix solaris snoop command 6 85
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now