dest='no_ifaddrs',
help='use on deprecated SunOS systems that do not support ifaddrs.h')
+parser.add_option("--fully-static",
+ action="store_true",
+ dest="fully_static",
+ help="Generate an executable without external dynamic libraries. This "
+ "will not work on OSX when using default compilation environment")
+
# deprecated
parser.add_option('--openssl-includes',
action='store',
o['cflags'] += cflags.split()
+def configure_fullystatic(o):
+ if options.fully_static:
+ o['libraries'] += ['-static']
+ if flavor == 'mac':
+ print("Generation of static executable will not work on OSX "
+ "when using default compilation environment")
+
+
def configure_winsdk(o):
if flavor != 'win':
return
configure_openssl(output)
configure_winsdk(output)
configure_icu(output)
+configure_fullystatic(output)
# variables should be a root level element,
# move everything else to target_defaults