Skip to content

Commit 5682245

Browse files
committed
Linking doxygen under Cygwin
Since the last update of the German translator (good and necessary, doxygen#11570) the compilation under Cygwin gives problems: ``` /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/as: CMakeFiles/doxymain.dir/language.cpp.o: too many sections (32796) /tmp/ccdnzEmx.s: Assembler messages: /tmp/ccdnzEmx.s: Fatal error: can't write 14 bytes to section .text of CMakeFiles/doxymain.dir/language.cpp.o: 'file too big' /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/as: CMakeFiles/doxymain.dir/language.cpp.o: too many sections (32796) /tmp/ccdnzEmx.s: Fatal error: CMakeFiles/doxymain.dir/language.cpp.o: file too big make[2]: *** [src/CMakeFiles/doxymain.dir/build.make:1672: src/CMakeFiles/doxymain.dir/language.cpp.o] Error 1 ``` by setting the `big-obj` option this can be overcome.
1 parent 5111e92 commit 5682245

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ if (CMAKE_SYSTEM_NAME MATCHES "CYGWIN")
183183
if (CMAKE_BUILD_TYPE STREQUAL "")
184184
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O1")
185185
endif()
186+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wa,-mbig-obj")
187+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj")
188+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wa,-mbig-obj")
186189
endif()
187190

188191
if (WIN32 AND MSVC)

0 commit comments

Comments
 (0)