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

Please render package cross-compiler aware #42

Open
IfSixWasNine opened this issue Jan 23, 2021 · 0 comments
Open

Please render package cross-compiler aware #42

IfSixWasNine opened this issue Jan 23, 2021 · 0 comments

Comments

@IfSixWasNine
Copy link

Due to using let in hsc2hs files, the hdbc-odbc package cannot be used during cross-compilation. In order to cross-compile it for the aarch64-architecture (MariaDB/ODBC on Debian Buster on Nirogen8M) on an x86_64.architecture (GHC with stack tool on Ubuntu 20.04 LTS multiarch installation), I had to download the package and remove the let uses and with also replacing the "#{CALLCONV}" occurences by "ccall".

The package could simply be rendered cross-compiler aware by using separate function call headers for "stdcall" and "ccall" instead of using let-controlled macros. Please repair the present issue.

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

No branches or pull requests

1 participant