Skip to content

Zig cc - Missing linker extension flag nodlopen #21100

Open

Description

@ian-cornelis

Zig Version

0.14.0-dev.1081+5d080e25d

Steps to Reproduce and Observed Behavior

Compile this program with zig cc test.c -o test -z nodlopen

int main() {
}

Produces: error: unsupported linker extension flag: -z nodlopen

Compiling this with clang works as expected

Expected Behavior

Zig should forward this flag on to clang as it's a supported linker extension flag by both clang and gcc

Activity

  1. added
    bugObserved behavior contradicts documented or intended behavior
    on Aug 16, 2024
  2. added
    enhancementSolving this issue will likely involve adding new logic or components to the codebase.
    zig ccZig as a drop-in C compiler feature
    and removed
    bugObserved behavior contradicts documented or intended behavior
    on Oct 9, 2024
  3. added this to the unplanned milestone on Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.linkingzig ccZig as a drop-in C compiler feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions