Skip to content

Linker flag --enable-auto-image-base is not recognized #19613

Closed

Description

@alexrp

Zig Version

0.11.0

Steps to Reproduce and Observed Behavior

Build an Autotools project with zig cc targeting any Windows/MinGW-w64 triple.

For example, cross-compiling libopus 1.5.1 from Linux to Windows:

$ mkdir build
$ cd build
$ ../configure --prefix=$PWD CC="zig cc -target x86-windows-gnu" --host=i686-w64-mingw32
$ make
... snip ...
  CCLD     libopus.la
error: unsupported linker arg: --enable-auto-image-base

Expected Behavior

No linker error.

Activity

  1. added
    bug
    on Apr 11, 2024
  2. alexrp commented on Jun 22, 2024

    @alexrp
    MemberAuthor
  3. added
    zig cc
    on Jun 22, 2024
  4. added this to the 0.14.0 milestone on Jun 22, 2024
  5. modified the milestones: 0.14.0, 0.16.0 on Aug 8, 2024
  6. changed the title [-]Linker flag `--enable-auto-image-base` is not supported[/-] [+]Linker flag `--enable-auto-image-base` is not recognized[/+] on Oct 6, 2024
  7. self-assigned this
    on Dec 7, 2024
  8. added a commit that references this issue on Jan 30, 2025
    c5e34df
  9. modified the milestones: 0.16.0, 0.14.0 on Feb 7, 2025
  10. removed their assignment
    on Feb 16, 2025
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

    buglinkingzig cc

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions