Solved

how to make buildworld with -static flag?

Posted on 2003-11-21
3
243 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
AIX Server 10 74
phantom space used up on RHEL?  (du shows no space used) 1 57
MarkLogic 1 47
unix solaris snoop command 6 42
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…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

763 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

6 Experts available now in Live!

Get 1:1 Help Now