DiscussionsIssue archivePRODUCTS:Release BUILD

Archived issue #0027461

wrong flag for static linking under linux results in error

CommunityPRODUCTS:Release BUILDclosed2 public notes

Search issues

Description

Line 109 in occt_def_flag.cmake is setting -lm for static linking on Linux:

set (CMAKE_STATIC_LINKER_FLAGS "-lm ${CMAKE_SHARED_STATIC_FLAGS}")

--> This results in an error message during static linking using ar

==> /usr/bin/ar two different operation options specified

Public activity

2 archived notes

Participants are labeled by their role within this record.

01Commenter 1
This should be already fixed in current master (see commit for issue 0027380, hash cd9ad1b77). Please try.
02Commenter 2
Dear Commenter 1,

please close the bug as no more relevant.