Index: trunk/scconfig/hooks.c =================================================================== --- trunk/scconfig/hooks.c (revision 33849) +++ trunk/scconfig/hooks.c (revision 33850) @@ -62,6 +62,10 @@ put("/local/pcb/dot_pcb_rnd", value); return 1; } + if (strcmp(key, "static") == 0) { + put("/local/pcb/want_static", strue); + return 1; + } if (arg_auto_set(key, value, disable_libs) == 0) { fprintf(stderr, "Error: unknown argument %s\n", key); exit(1); @@ -85,6 +89,7 @@ put("/local/pcb/want_bison", sfalse); put("/local/pcb/want_byaccic", sfalse); + put("/local/pcb/want_static", sfalse); put("/local/pcb/dot_pcb_rnd", ".pcb-rnd"); put("/local/pcb/librnd_is_local", strue); Index: trunk/src/Makefile.in =================================================================== --- trunk/src/Makefile.in (revision 33849) +++ trunk/src/Makefile.in (revision 33850) @@ -5,6 +5,10 @@ put /local/pcb/DEPCFLAGS {} put /local/pcb/OBJS_3RDLIB {} +if /local/pcb/want_static then + append /local/pcb/LDFLAGS { -static} +end + # These files are to be generated before make dep is run put /local/pcb/DEPDEPS { $(LIBRND)/core/hidlib_conf_fields.h conf_core_fields.h conf_internal.c defpcb_internal.c buildin.c buildin.hidlib.c pcb_menu_default.c }