Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openwrt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Freifunk Luebeck
openwrt
Commits
585a9ff5
Commit
585a9ff5
authored
17 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
fix libtool version checks in some configure scripts
SVN-Revision: 9943
parent
5c2991d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/autotools.mk
+12
-4
12 additions, 4 deletions
include/autotools.mk
with
12 additions
and
4 deletions
include/autotools.mk
+
12
−
4
View file @
585a9ff5
...
...
@@ -14,17 +14,25 @@ define replace
endef
# replace copies of ltmain.sh with the build system's version
update_libtool
=
$(
call replace,libtool,
$(
STAGING_DIR
)
/host/bin,
$(
CONFIGURE_PATH
)
/
)$(
call replace,ltmain.sh,
$(
STAGING_DIR
)
/host/share/libtool,
$(
CONFIGURE_PATH
)
/
)
update_libtool
=
$(
call replace,libtool,
$(
STAGING_DIR
)
/host/bin,
$(
CONFIGURE_PATH
)
/
)$(
call replace,ltmain.sh,
$(
STAGING_DIR
)
/host/share/libtool,
$(
CONFIGURE_PATH
)
/
)
$(
call replace,libtool.m4,
$(
STAGING_DIR
)
/host/share/aclocal,
$(
CONFIGURE_PATH
)
/
)
# prevent libtool from linking against host development libraries
define
libtool_fixup_libdir
find
$(PKG_BUILD_DIR)
-name
'*.la'
|
$(XARGS)
\
$(SED)
"s,^libdir='/usr/lib',libdir='$(strip $(1))/usr/lib',g"
$(SED)
"s,^libdir='/usr/lib',libdir='$(if $(PKG_INSTALL_DIR),$(PKG_INSTALL_DIR),$(STAGING_DIR))/usr/lib',g"
endef
define
remove_version_check
if
[
-f
"$(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/configure"
];
then
\
$(SED)
\
's,pardus_ltmain_version=.*,pardus_ltmain_version="$$$$pardus_lt_version",'
\
$(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/configure;
\
fi
endef
ifneq
($(filter libtool,$(PKG_FIXUP)),)
PKG_BUILD_DEPENDS
+=
libtool
Hooks/Configure/
Pre
+=
update_libtool
Hooks/Configure/
Pre
+=
update_libtool
remove_version_check
Hooks/Configure/
Post
+=
update_libtool
Hooks/
Bu
il
d
/
Post
+=
libtool_fixup_libdir
Hooks/
Comp
il
e
/
Post
+=
libtool_fixup_libdir
endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment