This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 351

Summary: Fixed path in pkg-config control file eigen2.pc breaks cross-compiling
Product: Eigen Reporter: Steve Wolter <eigen2>
Component: GeneralAssignee: Nobody <eigen.nobody>
Status: NEW ---    
Severity: minor CC: gael.guennebaud, jacob.benoit.1
Priority: ---    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch for eigen2-2.0.16 that fixes the issue. none

Description Steve Wolter 2011-09-22 08:19:42 UTC
Created attachment 211 [details]
Patch for eigen2-2.0.16 that fixes the issue.

The pkg-config file of Eigen2 declares a fixed include path like

Cflags: -I/usr/include/eigen2

while standard practice is to declare it with variables, like:

prefix=/usr
includedir=${prefix}/include
Cflags: -I${includedir}/eigen2

Cross-compiling tools like dpkg-cross rely on the standard layout to re-base compiler and linker paths from /usr to /usr/${triplet} and can't perform their job if the path is fixed.

I've attached a patch to fix this issue.
Comment 1 Nobody 2019-12-04 11:08:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/351.