diff options
author | midipix <writeonce@midipix.org> | 2016-05-05 19:38:12 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:45 -0500 |
commit | dbc5ee4ec1f9fcfcba5bb37573b33aaaca1ebc5b (patch) | |
tree | 8bb383f2dd5ba753fb78ac7d3c5e6d4eefdd3ee9 | |
parent | 5b28e8fd50ed261e2025a59fd5d267c32522930f (diff) | |
download | perk-dbc5ee4ec1f9fcfcba5bb37573b33aaaca1ebc5b.tar.bz2 perk-dbc5ee4ec1f9fcfcba5bb37573b33aaaca1ebc5b.tar.xz |
build system: configure: added --disable-[shared|static] support.
-rw-r--r-- | config.project | 7 | ||||
-rw-r--r-- | config.usage | 7 | ||||
-rwxr-xr-x | configure | 31 |
3 files changed, 45 insertions, 0 deletions
diff --git a/config.project b/config.project index d97f0cd..6478ab8 100644 --- a/config.project +++ b/config.project @@ -41,3 +41,10 @@ mb_default_pe_config_defs= mb_default_elf_eh_frame= mb_default_elf_hash_style= mb_default_elf_config_defs= + + +# config +mb_all_static= +mb_all_shared= +mb_disable_static= +mb_disable_shared= diff --git a/config.usage b/config.usage index e013816..efb4002 100644 --- a/config.usage +++ b/config.usage @@ -26,6 +26,13 @@ supported switches: --shell --debug + --all-static + --all-shared + --enable-static + --enable-shared + --disable-static + --disable-shared + supported variables: -------------------- @@ -167,6 +167,12 @@ common_defaults() [ -z "$mb_elf_hash_style" ] && mb_elf_hash_style=$mb_default_elf_hash_style [ -z "$mb_elf_config_defs" ] && mb_elf_config_defs=$mb_default_elf_config_defs + # config + [ -z "$mb_all_static" ] && mb_all_static='no' + [ -z "$mb_all_shared" ] && mb_all_shared='no' + [ -z "$mb_disable_static" ] && mb_disable_static='no' + [ -z "$mb_disable_shared" ] && mb_disable_shared='no' + # host/target [ -z "$mb_host" ] && mb_host=$mb_target [ -z "$mb_target" ] && mb_target=$mb_host @@ -372,6 +378,11 @@ config_copy() -e 's^@user_cc@^'"$mb_user_cc"'^g' \ -e 's^@user_cpp@^'"$mb_user_cpp"'^g' \ -e 's^@user_cxx@^'"$mb_user_cxx"'^g' \ + \ + -e 's^@all_static@^'"$mb_all_static"'^g' \ + -e 's^@all_shared@^'"$mb_all_shared"'^g' \ + -e 's^@disable_static@^'"$mb_disable_static"'^g' \ + -e 's^@disable_shared@^'"$mb_disable_shared"'^g' \ $mb_project_dir/Makefile.in > $mb_pwd/Makefile } @@ -463,6 +474,26 @@ for arg ; do mb_debug='yes' ;; + # config + --all-static) + mb_all_static='yes' + ;; + --all-shared) + mb_all_shared='yes' + ;; + --disable-static) + mb_disable_static='yes' + ;; + --disable-shared) + mb_disable_shared='yes' + ;; + --enable-static) + mb_disable_static='no' + ;; + --enable-shared) + mb_disable_shared='no' + ;; + # project --nickname=*) mb_nickname=${arg#*=} |