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

Incorrect compiler options on AIX with GCC #12

Open
merlinscholz opened this issue Mar 18, 2024 · 0 comments
Open

Incorrect compiler options on AIX with GCC #12

merlinscholz opened this issue Mar 18, 2024 · 0 comments

Comments

@merlinscholz
Copy link

When trying to compile DBD::DB2 on AIX with GCC, I ran into gcc: error: unrecognized command-line option '-qcpluscmt'.

This is a XLC-exclusive flag and seems to be caused by https://github.com/ibmdb/perl_DBD-DB2/blob/master/Constants/Makefile.PL#L79, which assumes that XLC is the only compiler used on AIX. After commenting out the line that tries to add the -qcpluscmt flag on AIX, the compilation works fine (with GCC).

My suggestion would be to only add this flag when used in combination with XLC, not on AIX in general.

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