Changeset 667c3fc in mainline


Ignore:
Timestamp:
2019-08-17T12:49:43Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
56440a5
Parents:
d4b30cf
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-30 13:30:45)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

Fix handling of CONFIG_BUILD_SHARED_LIBS

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rd4b30cf r667c3fc  
    5050-include $(COMMON_MAKEFILE)
    5151
    52 # TODO: make meson reconfigure correctly when library build changes
    53 
    54 ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)
    55         MESON_ARGS = -Ddefault_library=shared
    56 else
    57         MESON_ARGS = -Ddefault_library=static
    58 endif
    59 
    6052CROSS_TARGET ?= $(UARCH)
    6153
     
    6961
    7062$(BUILD_DIR)/build.ninja: $(CONFIG_MAKEFILE) $(VERSION_FILE)
    71         meson . $(BUILD_DIR) --cross-file meson/cross/$(CROSS_TARGET) $(MESON_ARGS)
     63        meson . $(BUILD_DIR) --cross-file meson/cross/$(CROSS_TARGET)
    7264
    7365meson: $(COMMON_MAKEFILE) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(ERRNO_HEADER) $(BUILD_DIR)/build.ninja
  • meson.build

    rd4b30cf r667c3fc  
    22# TODO: jobfile
    33# TODO: lto
    4 # TODO: CONFIG_BUILD_SHARED_LIBS
    54# TODO: fix clang build
    65
     
    87    'HelenOS',
    98    [ 'c', 'cpp' ],
    10     default_options : ['buildtype=plain', 'c_std=gnu11', 'cpp_std=c++17', 'warning_level=3', 'werror=false', 'b_staticpic=false', 'default_library=shared', 'prefix=/' ],
     9    default_options : ['buildtype=plain', 'c_std=gnu11', 'cpp_std=c++17', 'warning_level=3', 'werror=false', 'b_staticpic=false', 'prefix=/' ],
    1110    meson_version: '>=0.50.1',
    1211)
     
    8382        '@INPUT@',
    8483]
    85 
    86 if get_option('default_library') == 'both'
    87         error('You must use either shared or static for default_library.')
    88 endif
    8984
    9085debug_options = false
  • uspace/lib/meson.build

    rd4b30cf r667c3fc  
    1 always_static = (get_option('default_library') == 'static')
     1always_static = not CONFIG_BUILD_SHARED_LIBS
    22
    33# Which libraries are installed when CONFIG_DEVEL_FILES is enabled
Note: See TracChangeset for help on using the changeset viewer.