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

Use mysql_config for --with-mysql-capi= when using --static #47

Closed
wants to merge 1 commit into from

Conversation

dveeden
Copy link

@dveeden dveeden commented Jan 6, 2019

For dynamically linking this works:
--with-mysql-capi=/usr/bin/mysql_config

However this doesn't work:
--with-mysql-capi=/usr/bin/mysql_config --static

This does work:
--with-mysql-capi=/opt/mysql/8.0.13 --static

But that expects libs to be under <path>/lib and headers
on <path>/include

But the mysql-community-devel RPM puts these here:

  • /usr/include/mysql
  • /usr/lib64/mysql

This commit makes it possible to use mysql_config together
with --static to make it possible to compile statically
when using the RPM instead of a tarball install of MySQL.

For dynamically linking this works:
--with-mysql-capi=/usr/bin/mysql_config

However this doesn't work:
--with-mysql-capi=/usr/bin/mysql_config --static

This does work:
--with-mysql-capi=/opt/mysql/8.0.13 --static

But that expects libs to be under <path>/lib and headers
on <path>/include

But the mysql-community-devel RPM puts these here:
/usr/include/mysql
/usr/lib64/mysql

This commit makes it possible to use mysql_config together
with --static to make it possible to compile statically
when using the RPM instead of a tarball install of MySQL.
@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@dveeden
Copy link
Author

dveeden commented Jan 7, 2019

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=93846 for updates.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants