Skip to content

Conversation

@Adsun701
Copy link
Contributor

This sets rsync_EXPORTS on Windows to prevent build failure. In addition, missing LIBRSYNC_EXPORT types are added to certain variables in librsync.h to prevent redefiniton errors on MSVC, and dlls are correctly installed into the bin directory.

Copy link
Member

@dbaarda dbaarda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this... I don't have a system where I can test this platform.

Theres on thing in the CMakeLists.txt that I think is not required, but everything else looks fine.

Can you fix and/or confirm if its needed?

Copy link
Member

@dbaarda dbaarda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description will also need updating.

Copy link
Member

@dbaarda dbaarda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want rdiff statically linked, we want it dynamically linked against the rsync library.

If that doesn't work for some reason, there may be other problems we need to fix for MinGW and/or MSVC.

Copy link
Member

@dbaarda dbaarda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the changes to rdiff.c are wrong and should not be required.

If it won't compile without these changes, there must be something else going wrong somewhere.

@Adsun701 Adsun701 changed the title fix build on MinGW-w64 and MSVC [WIP] fix build on MinGW-w64 and MSVC Aug 21, 2019
@Adsun701 Adsun701 changed the title [WIP] fix build on MinGW-w64 and MSVC fix build on MinGW-w64 and MSVC Aug 23, 2019
Copy link
Member

@dbaarda dbaarda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this and being patient with all the back-and-forth to get this right.

@dbaarda dbaarda merged commit cd40453 into librsync:master Aug 23, 2019
@Adsun701 Adsun701 deleted the win32-fixes branch August 23, 2019 10:32
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

Successfully merging this pull request may close these issues.

2 participants