Skip to content

cannot link static library with dep #12709

@stsp

Description

@stsp

Describe the bug
static_library() either completely ignore the
dependency, or says its not a static library.

To Reproduce

ASFILES = [ 'int23.S', 'int0.S', 'asm.S', sfiles ]
libdjs = dependency('dj64static', static: true)
lib = static_library('dummy', ASFILES,
  link_whole: libdjs)

This results in:

meson.build:106:6: ERROR: <PkgConfigDependency dj64static: True None> is not a static library.

If instead of the link_whole we use

lib = static_library('dummy', ASFILES,
  dependencies: libdjs)

then configuration passes, but the
dependencies is completely ignored.

Expected behavior
libdummy.a should be linked with the
library pointed by libdjs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions