Skip to content

[fix] patch libtool version < 2.4.6 to generate lib without version suffix for Android#493

Merged
Frenzie merged 1 commit intokoreader:masterfrom
chrox:patch_libtool
Jun 7, 2017
Merged

[fix] patch libtool version < 2.4.6 to generate lib without version suffix for Android#493
Frenzie merged 1 commit intokoreader:masterfrom
chrox:patch_libtool

Conversation

@chrox
Copy link
Copy Markdown
Member

@chrox chrox commented Jun 6, 2017

The libtool version >= 2.4.6 don't have this problem and won't be affected by the patch. See comments in #482.

Copy link
Copy Markdown
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

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

Nice workaround!

set(CFG_CMD sh -c "${CFG_ENV_VAR} ${SOURCE_DIR}/configure ${CFG_OPTS}")

if($ENV{ANDROID})
set(CFG_CMD "${CFG_CMD} && ${ISED} 's|\${shared_ext}\\\\\$major|\${shared_ext}|' libtool")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Funny thing is that we need exactly FOUR backslashs to escape one backslash in the original file.

@Frenzie Frenzie merged commit 48a2ff5 into koreader:master Jun 7, 2017
@chrox chrox deleted the patch_libtool branch June 8, 2017 16:14
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