Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add libm to link line #158

Closed
wants to merge 1 commit into from
Closed

add libm to link line #158

wants to merge 1 commit into from

Conversation

nschloe
Copy link

@nschloe nschloe commented May 17, 2017

This prevents link errors of the kind

CMakeFiles/hpdf.dir/hpdf_page_operator.o: In function `InternalArc':
hpdf_page_operator.c:(.text+0x651c): undefined reference to `cos'
hpdf_page_operator.c:(.text+0x6557): undefined reference to `sin'
[...]

uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Apr 22, 2019
…RRENT

ld: error: src/libhpdf.so: undefined reference to cos
ld: error: src/libhpdf.so: undefined reference to sin

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p499421_s346424/logs/errors/libharu-2.3.0_1.log

libharu/libharu#158


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@499653 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Apr 22, 2019
@ghost
Copy link

ghost commented Apr 22, 2019

Jehops pushed a commit to Jehops/freebsd-ports-legacy that referenced this pull request Apr 22, 2019
…RRENT

ld: error: src/libhpdf.so: undefined reference to cos
ld: error: src/libhpdf.so: undefined reference to sin

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p499421_s346424/logs/errors/libharu-2.3.0_1.log

libharu/libharu#158


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@499653 35697150-7ecd-e111-bb59-0022644237b5
kwm81 pushed a commit to freebsd/freebsd-ports-gnome that referenced this pull request Apr 22, 2019
swills pushed a commit to swills/freebsd-ports that referenced this pull request Apr 22, 2019
…RRENT

ld: error: src/libhpdf.so: undefined reference to cos
ld: error: src/libhpdf.so: undefined reference to sin

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p499421_s346424/logs/errors/libharu-2.3.0_1.log

libharu/libharu#158


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@499653 35697150-7ecd-e111-bb59-0022644237b5
@@ -99,6 +99,9 @@ if(PNG_FOUND)
set(ADDITIONAL_LIBRARIES ${ADDITIONAL_LIBRARIES} ${PNG_LIBRARIES})
endif(PNG_FOUND)

find_library(M_LIB m)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's only relevant on unix, maybe add only append M_LIB if valid

@bramton
Copy link
Member

bramton commented Jun 11, 2022

This has been fixed in the devel branch.

@bramton bramton closed this Jun 11, 2022
svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this pull request Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants