Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5ed59015
Commit
5ed59015
authored
Feb 20, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Use --rpath if supported when building binaries to point to
the relative location of the wine libraries.
parent
4758df46
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
5 deletions
+79
-5
configure
configure
+64
-1
configure.ac
configure.ac
+8
-0
Makefile.in
loader/Makefile.in
+4
-3
Makefile.in
server/Makefile.in
+3
-1
No files found.
configure
View file @
5ed59015
...
@@ -311,7 +311,7 @@ ac_includes_default="\
...
@@ -311,7 +311,7 @@ ac_includes_default="\
# include <unistd.h>
# include <unistd.h>
#endif"
#endif"
ac_subst_vars
=
'SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS FONTFORGE PKG_CONFIG PRELINK LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS XML2LIBS XML2INCL XSLTLIBS XSLTINCL CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS LCMSLIBS LDAPLIBS FREETYPELIBS FREETYPEINCL ft_devel ft_devel2 FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ESDCONFIG ESDLIBS ESDINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS BUILTINFLAG DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS MAIN_BINARY EXTRA_BINARIES LDD LIBOBJS LTLIBOBJS'
ac_subst_vars
=
'SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS FONTFORGE PKG_CONFIG PRELINK LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS XML2LIBS XML2INCL XSLTLIBS XSLTINCL CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS LCMSLIBS LDAPLIBS FREETYPELIBS FREETYPEINCL ft_devel ft_devel2 FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ESDCONFIG ESDLIBS ESDINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS BUILTINFLAG DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS
LDEXERPATH
COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS MAIN_BINARY EXTRA_BINARIES LDD LIBOBJS LTLIBOBJS'
ac_subst_files
=
'MAKE_RULES MAKE_DLL_RULES MAKE_IMPLIB_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
ac_subst_files
=
'MAKE_RULES MAKE_DLL_RULES MAKE_IMPLIB_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
# Initialize some variables set by options.
# Initialize some variables set by options.
...
@@ -12712,6 +12712,68 @@ echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
...
@@ -12712,6 +12712,68 @@ echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
fi
fi
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts --rpath"
>
&5
echo
$ECHO_N
"checking whether the linker accepts --rpath...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_ld_rpath
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-fPIC -Wl,--rpath,
\$
ORIGIN/../lib"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_ld_rpath
=
"yes"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_ld_rpath
=
"no"
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_ld_rpath
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_ld_rpath
"
>
&6
if
test
"
$ac_cv_ld_rpath
"
=
"yes"
then
LDEXERPATH
=
"-Wl,--rpath,
\\\$\$
ORIGIN/
\`\$
(RELPATH)
\$
(bindir)
\$
(libdir)
\`
"
fi
case
$host_cpu
in
case
$host_cpu
in
*
i[3456789]86
*
)
*
i[3456789]86
*
)
echo
"
$as_me
:
$LINENO
: checking whether we can relocate the executable to 0x7bf00000"
>
&5
echo
"
$as_me
:
$LINENO
: checking whether we can relocate the executable to 0x7bf00000"
>
&5
...
@@ -19850,6 +19912,7 @@ s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
...
@@ -19850,6 +19912,7 @@ s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
s,@DLLWRAP@,
$DLLWRAP
,;t t
s,@DLLWRAP@,
$DLLWRAP
,;t t
s,@ac_ct_DLLWRAP@,
$ac_ct_DLLWRAP
,;t t
s,@ac_ct_DLLWRAP@,
$ac_ct_DLLWRAP
,;t t
s,@LDEXECFLAGS@,
$LDEXECFLAGS
,;t t
s,@LDEXECFLAGS@,
$LDEXECFLAGS
,;t t
s,@LDEXERPATH@,
$LDEXERPATH
,;t t
s,@COREFOUNDATIONLIB@,
$COREFOUNDATIONLIB
,;t t
s,@COREFOUNDATIONLIB@,
$COREFOUNDATIONLIB
,;t t
s,@IOKITLIB@,
$IOKITLIB
,;t t
s,@IOKITLIB@,
$IOKITLIB
,;t t
s,@CROSSTEST@,
$CROSSTEST
,;t t
s,@CROSSTEST@,
$CROSSTEST
,;t t
...
...
configure.ac
View file @
5ed59015
...
@@ -987,6 +987,14 @@ case $host_os in
...
@@ -987,6 +987,14 @@ case $host_os in
AC_SUBST(LDEXECFLAGS,["-Wl,--export-dynamic"])
AC_SUBST(LDEXECFLAGS,["-Wl,--export-dynamic"])
fi
fi
AC_CACHE_CHECK([whether the linker accepts --rpath], ac_cv_ld_rpath,
[WINE_TRY_CFLAGS([-fPIC -Wl,--rpath,\$ORIGIN/../lib],
ac_cv_ld_rpath="yes",ac_cv_ld_rpath="no")])
if test "$ac_cv_ld_rpath" = "yes"
then
AC_SUBST(LDEXERPATH,["-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"])
fi
case $host_cpu in
case $host_cpu in
*i[[3456789]]86*)
*i[[3456789]]86*)
AC_CACHE_CHECK([whether we can relocate the executable to 0x7bf00000], ac_cv_ld_reloc_exec,
AC_CACHE_CHECK([whether we can relocate the executable to 0x7bf00000], ac_cv_ld_reloc_exec,
...
...
loader/Makefile.in
View file @
5ed59015
...
@@ -26,18 +26,19 @@ all: $(WINE_BINARIES) $(MODULE) $(MANPAGES)
...
@@ -26,18 +26,19 @@ all: $(WINE_BINARIES) $(MODULE) $(MANPAGES)
LIBPTHREAD
=
@LIBPTHREAD@
LIBPTHREAD
=
@LIBPTHREAD@
LDEXECFLAGS
=
@LDEXECFLAGS@
LDEXECFLAGS
=
@LDEXECFLAGS@
LDEXERPATH
=
@LDEXERPATH@
wine-glibc
:
glibc.o Makefile.in
wine-glibc
:
glibc.o Makefile.in
$(CC)
-o
$@
glibc.o
$(LIBWINE)
$(LIBPORT)
$(LIBPTHREAD)
$(EXTRALIBS)
$(LDFLAGS)
$(CC)
-o
$@
glibc.o
$(L
DEXERPATH)
$(L
IBWINE)
$(LIBPORT)
$(LIBPTHREAD)
$(EXTRALIBS)
$(LDFLAGS)
wine-preloader
:
preloader.o Makefile.in
wine-preloader
:
preloader.o Makefile.in
$(CC)
-o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=
0x7c000000 preloader.o
$(LIBPORT)
$(LDFLAGS)
$(CC)
-o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=
0x7c000000 preloader.o
$(LIBPORT)
$(LDFLAGS)
wine-kthread
:
$(KTHREAD_OBJS) Makefile.in
wine-kthread
:
$(KTHREAD_OBJS) Makefile.in
$(CC)
-o
$@
$(LDEXECFLAGS)
$(KTHREAD_OBJS)
$(LIBWINE)
$(LIBPORT)
$(EXTRALIBS)
$(LDFLAGS)
$(CC)
-o
$@
$(LDEXECFLAGS)
$(
LDEXERPATH)
$(
KTHREAD_OBJS)
$(LIBWINE)
$(LIBPORT)
$(EXTRALIBS)
$(LDFLAGS)
wine-pthread
:
$(PTHREAD_OBJS) Makefile.in
wine-pthread
:
$(PTHREAD_OBJS) Makefile.in
$(CC)
-o
$@
$(LDEXECFLAGS)
$(PTHREAD_OBJS)
$(LIBWINE)
$(LIBPORT)
$(LIBPTHREAD)
$(EXTRALIBS)
$(LDFLAGS)
$(CC)
-o
$@
$(LDEXECFLAGS)
$(
LDEXERPATH)
$(
PTHREAD_OBJS)
$(LIBWINE)
$(LIBPORT)
$(LIBPTHREAD)
$(EXTRALIBS)
$(LDFLAGS)
$(MODULE)
:
$(MAIN_BINARY)
$(MODULE)
:
$(MAIN_BINARY)
$(RM)
$(MODULE)
&&
$(LN_S)
$(MAIN_BINARY)
$(MODULE)
$(RM)
$(MODULE)
&&
$(LN_S)
$(MAIN_BINARY)
$(MODULE)
...
...
server/Makefile.in
View file @
5ed59015
...
@@ -57,8 +57,10 @@ all: $(PROGRAMS) $(MANPAGES)
...
@@ -57,8 +57,10 @@ all: $(PROGRAMS) $(MANPAGES)
@MAKE_RULES@
@MAKE_RULES@
LDEXERPATH
=
@LDEXERPATH@
wineserver
:
$(OBJS)
wineserver
:
$(OBJS)
$(CC)
-o
$
(PROGRAMS
)
$(OBJS)
$(LIBWINE)
$(LIBUNICODE)
$(LIBPORT)
$(LDFLAGS)
$(LIBS)
$(CC)
-o
$
@
$(LDEXERPATH
)
$(OBJS)
$(LIBWINE)
$(LIBUNICODE)
$(LIBPORT)
$(LDFLAGS)
$(LIBS)
install
::
$(PROGRAMS) $(MANPAGES)
install
::
$(PROGRAMS) $(MANPAGES)
$(MKINSTALLDIRS)
$(DESTDIR)$(bindir)
$(DESTDIR)$(mandir)
/man
$(prog_manext)
$(MKINSTALLDIRS)
$(DESTDIR)$(bindir)
$(DESTDIR)$(mandir)
/man
$(prog_manext)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment