Autotools build system does not set OS_ defines #419

Open
opened 2026-01-29 20:43:33 +00:00 by claunia · 0 comments
Owner

Originally created by @ryandesign on GitHub (May 7, 2022).

The cmake build system sets some custom defines for various OS types in CMakeLists.txt

if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
  add_definitions(-DOS_LINUX)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
  add_definitions(-DOS_FREEBSD)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  add_definitions(-DOS_MACOSX)
endif()

The undocumented autotools build system does not. Perhaps it should?

Originally created by @ryandesign on GitHub (May 7, 2022). The cmake build system sets some custom defines for various OS types in CMakeLists.txt ``` if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") add_definitions(-DOS_LINUX) elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") add_definitions(-DOS_FREEBSD) elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") add_definitions(-DOS_MACOSX) endif() ``` The undocumented autotools build system does not. Perhaps it should?
claunia added the release-v1.1.1enhancement labels 2026-01-29 20:43:34 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#419