ffb3a0
build system: configure: added --disable-[shared|static] support.
@@ -41,3 +41,10 @@ mb_default_pe_config_defs=
|
|
41
41
|
mb_default_elf_eh_frame=
|
42
42
|
mb_default_elf_hash_style=
|
43
43
|
mb_default_elf_config_defs=
|
44
|
+
|
45
|
+
|
46
|
+
config
|
47
|
+
mb_all_static=
|
48
|
+
mb_all_shared=
|
49
|
+
mb_disable_static=
|
50
|
+
mb_disable_shared=
|
@@ -26,6 +26,13 @@ supported switches:
|
|
26
26
|
--shell
|
27
27
|
--debug
|
28
28
|
|
29
|
+
--all-static
|
30
|
+
--all-shared
|
31
|
+
--enable-static
|
32
|
+
--enable-shared
|
33
|
+
--disable-static
|
34
|
+
--disable-shared
|
35
|
+
|
29
36
|
|
30
37
|
supported variables:
|
31
38
|
--------------------
|
@@ -167,6 +167,12 @@ common_defaults()
|
|
167
167
|
[ -z "$mb_elf_hash_style" ] && mb_elf_hash_style=$mb_default_elf_hash_style
|
168
168
|
[ -z "$mb_elf_config_defs" ] && mb_elf_config_defs=$mb_default_elf_config_defs
|
169
169
|
|
170
|
+
# config
|
171
|
+
[ -z "$mb_all_static" ] && mb_all_static='no'
|
172
|
+
[ -z "$mb_all_shared" ] && mb_all_shared='no'
|
173
|
+
[ -z "$mb_disable_static" ] && mb_disable_static='no'
|
174
|
+
[ -z "$mb_disable_shared" ] && mb_disable_shared='no'
|
175
|
+
|
170
176
|
# host/target
|
171
177
|
[ -z "$mb_host" ] && mb_host=$mb_target
|
172
178
|
[ -z "$mb_target" ] && mb_target=$mb_host
|
@@ -372,6 +378,11 @@ config_copy()
|
|
372
378
|
-e 's^@user_cc@^'"$mb_user_cc"'^g' \
|
373
379
|
-e 's^@user_cpp@^'"$mb_user_cpp"'^g' \
|
374
380
|
-e 's^@user_cxx@^'"$mb_user_cxx"'^g' \
|
381
|
+
\
|
382
|
+
-e 's^@all_static@^'"$mb_all_static"'^g' \
|
383
|
+
-e 's^@all_shared@^'"$mb_all_shared"'^g' \
|
384
|
+
-e 's^@disable_static@^'"$mb_disable_static"'^g' \
|
385
|
+
-e 's^@disable_shared@^'"$mb_disable_shared"'^g' \
|
375
386
|
$mb_project_dir/Makefile.in > $mb_pwd/Makefile
|
376
387
|
}
|
377
388
|
|
@@ -463,6 +474,26 @@ for arg ; do
|
|
463
474
|
mb_debug='yes'
|
464
475
|
;;
|
465
476
|
|
477
|
+
# config
|
478
|
+
--all-static)
|
479
|
+
mb_all_static='yes'
|
480
|
+
;;
|
481
|
+
--all-shared)
|
482
|
+
mb_all_shared='yes'
|
483
|
+
;;
|
484
|
+
--disable-static)
|
485
|
+
mb_disable_static='yes'
|
486
|
+
;;
|
487
|
+
--disable-shared)
|
488
|
+
mb_disable_shared='yes'
|
489
|
+
;;
|
490
|
+
--enable-static)
|
491
|
+
mb_disable_static='no'
|
492
|
+
;;
|
493
|
+
--enable-shared)
|
494
|
+
mb_disable_shared='no'
|
495
|
+
;;
|
496
|
+
|
466
497
|
# project
|
467
498
|
--nickname=*)
|
468
499
|
mb_nickname=${arg#*=}
|