abseil-cpp icon indicating copy to clipboard operation
abseil-cpp copied to clipboard

Expand ABSL_INTERNAL_DLL_TARGETS to avoid static libs on windows when BUILD_SHARED_LIBS=ON

Open h-vetinari opened this issue 4 years ago • 6 comments

Fixes #1114

More details in second commit message; first one has no changes other than alphabetizing the list for better legibility.

h-vetinari avatar Mar 05 '22 02:03 h-vetinari

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

google-cla[bot] avatar Mar 05 '22 02:03 google-cla[bot]

Hey @derekmauro

I'm very sorry this fell by the wayside so long. Would this PR still be useful / acceptable if it excluded all the flag targets?

h-vetinari avatar Aug 04 '22 06:08 h-vetinari

@derekmauro: Can you remove the flags related targets?

@h-vetinari: Would this PR still be useful / acceptable if it excluded all the flag targets?

I've done this now.

h-vetinari avatar Aug 04 '22 16:08 h-vetinari

With https://github.com/abseil/abseil-cpp/commit/6d806da76f9dff9c21729f850c6b0e5e727a4281 having landed, this PR is now much shorter. :)

PTAL @derekmauro

h-vetinari avatar Aug 16 '22 10:08 h-vetinari

Sorry for the delay on this one. There are some things I need to take a look at before I can merge this one. Please be patient.

derekmauro avatar Aug 16 '22 13:08 derekmauro

No worries, it also got stuck on my end for a while. Just wanted to let you know on the occasion of rebasing out the largest part of the PR.

h-vetinari avatar Aug 16 '22 13:08 h-vetinari

Sorry for the delay on this one. There are some things I need to take a look at before I can merge this one. Please be patient.

Gentle ping @derekmauro; I also rebased the branch to current master.

h-vetinari avatar Oct 21 '22 14:10 h-vetinari

@derekmauro @mkruskal-google I rebased this for the new LTS now; it's still necessary for us in conda-forge, would be nice if we could get this merged.

The one thing I wanted to check is the status of absl_log_flags: further up, @derekmauro said that all the absl_flags* libs are not supported for shared builds, but it's unclear to me (just from the name) if that applies to absl_log_flags as well. For the moments I've included it in ABSL_INTERNAL_DLL_TARGETS along with all the other absl_log* targets.

h-vetinari avatar Feb 07 '23 02:02 h-vetinari

Gentle ping @derekmauro :)

h-vetinari avatar Mar 14 '23 08:03 h-vetinari

Rebased this PR. It's been shipping in conda-forge for quite a while now, and is also compatible with the test target installation. It's also not adding any more flag-related libraries.

PTAL @derekmauro

h-vetinari avatar May 13 '23 12:05 h-vetinari