On Sat, 12 Apr 2025 18:52:12 +0200 ASSI wrote: > Takashi Yano via Cygwin-apps writes: > > Now I am trying to build llvm for cygwin. For now, it fails with > > ld: error: export ordinal too large: xxxxx > > in dll linkage. > > > > If you could give me a suggestion, I would greatly appreciate it. > > That usually happens if the linker tries to export all symbols from the > objects (which is the default if it doen't get told otherwise). Check > to see if there's a linker script available and actually use that during > the DLL creation.
Adding -DCMAKE_SHARED_LINKER_FLAGS=-fvisibility=hidden to CYGCMAKE_ARGS solves the issue. Thanks! -- Takashi Yano <takashi.y...@nifty.ne.jp>