[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

how to make buildworld with -static flag?

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
bushmannt
Asked:
bushmannt
1 Solution
 
gheistCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now