Solved

how to make buildworld with -static flag?

Posted on 2003-11-21
3
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 62

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

705 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