Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
546839f4
Commit
546839f4
authored
Nov 11, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only build both Wine binaries on Linux, pthread support doesn't work
on other platforms.
parent
d7ee5f3f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
32 deletions
+55
-32
configure
configure
+26
-13
configure.ac
configure.ac
+17
-8
Makefile.in
loader/Makefile.in
+12
-11
No files found.
configure
View file @
546839f4
...
...
@@ -308,7 +308,7 @@ ac_includes_default="\
# include <unistd.h>
#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 WIN16_FILES WIN16_INSTALL
MAIN_BINARY build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX 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 LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS
LDD ALLOCA 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 WIN16_FILES WIN16_INSTALL
build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX 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 LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS WINE_BINARIES MAIN_BINARY
LDD ALLOCA LIBOBJS LTLIBOBJS'
ac_subst_files
=
'MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
# Initialize some variables set by options.
...
...
@@ -1383,14 +1383,6 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
if
test
"x
$with_nptl
"
=
"xyes"
then
MAIN_BINARY
=
"wine-pthread"
else
MAIN_BINARY
=
"wine-kthread"
fi
# Make sure we can run config.sub.
...
...
@@ -12579,11 +12571,31 @@ case $build_os in
;;
esac
CRTLIBS
=
""
case
$host_os
in
mingw32
*
)
CRTLIBS
=
"-lmsvcrt"
;;
CRTLIBS
=
"-lmsvcrt"
;;
esac
case
$host_os
in
linux
*
)
WINE_BINARIES
=
"wine-kthread wine-pthread"
if
test
"x
$with_nptl
"
=
"xyes"
then
MAIN_BINARY
=
"wine-pthread"
else
MAIN_BINARY
=
"wine-kthread"
fi
;;
*
)
WINE_BINARIES
=
"wine-kthread"
MAIN_BINARY
=
"wine-kthread"
;;
esac
...
...
@@ -17821,7 +17833,6 @@ s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,
$LIBS
,;t t
s,@WIN16_FILES@,
$WIN16_FILES
,;t t
s,@WIN16_INSTALL@,
$WIN16_INSTALL
,;t t
s,@MAIN_BINARY@,
$MAIN_BINARY
,;t t
s,@build@,
$build
,;t t
s,@build_cpu@,
$build_cpu
,;t t
s,@build_vendor@,
$build_vendor
,;t t
...
...
@@ -17916,6 +17927,8 @@ s,@CROSSCC@,$CROSSCC,;t t
s,@CROSSWINDRES@,
$CROSSWINDRES
,;t t
s,@LDPATH@,
$LDPATH
,;t t
s,@CRTLIBS@,
$CRTLIBS
,;t t
s,@WINE_BINARIES@,
$WINE_BINARIES
,;t t
s,@MAIN_BINARY@,
$MAIN_BINARY
,;t t
s,@LDD@,
$LDD
,;t t
s,@ALLOCA@,
$ALLOCA
,;t t
s,@LIBOBJS@,
$LIBOBJS
,;t t
...
...
configure.ac
View file @
546839f4
...
...
@@ -36,12 +36,6 @@ if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
then
AC_DEFINE(NO_TRACE_MSGS,1,[Define to disable trace messages.])
fi
if test "x$with_nptl" = "xyes"
then
AC_SUBST(MAIN_BINARY,"wine-pthread")
else
AC_SUBST(MAIN_BINARY,"wine-kthread")
fi
dnl **** Check for some programs ****
...
...
@@ -918,10 +912,25 @@ case $build_os in
esac
dnl Mingw needs explicit msvcrt for linking libwine
AC_SUBST(CRTLIBS,"")
case $host_os in
mingw32*)
CRTLIBS="-lmsvcrt" ;;
AC_SUBST(CRTLIBS,"-lmsvcrt") ;;
esac
case $host_os in
linux*)
AC_SUBST(WINE_BINARIES,"wine-kthread wine-pthread")
if test "x$with_nptl" = "xyes"
then
AC_SUBST(MAIN_BINARY,"wine-pthread")
else
AC_SUBST(MAIN_BINARY,"wine-kthread")
fi
;;
*)
AC_SUBST(WINE_BINARIES,"wine-kthread")
AC_SUBST(MAIN_BINARY,"wine-kthread")
;;
esac
dnl **** Get the soname for libraries that we load dynamically ****
...
...
loader/Makefile.in
View file @
546839f4
...
...
@@ -12,16 +12,14 @@ C_SRCS = \
KTHREAD_OBJS
=
main.o kthread.o
PTHREAD_OBJS
=
main.o pthread.o
BINARIES
=
\
wine-kthread
\
wine-pthread
WINE_BINARIES
=
@WINE_BINARIES@
MAIN_BINARY
=
@MAIN_BINARY@
all
:
$(BINARIES) $(MODULE)
all
:
$(
WINE_
BINARIES) $(MODULE)
@MAKE_RULES@
LIBPTHREAD
=
@LIBPTHREAD@
MAIN_BINARY
=
@MAIN_BINARY@
LDEXECFLAGS
=
@LDEXECFLAGS@
wine-kthread
:
$(KTHREAD_OBJS) Makefile.in
...
...
@@ -33,16 +31,19 @@ wine-pthread: $(PTHREAD_OBJS) Makefile.in
$(MODULE)
:
$(MAIN_BINARY)
$(RM)
$(MODULE)
&&
$(LN_S)
$(MAIN_BINARY)
$(MODULE)
install
::
$(BINARIES)
install
::
$(
WINE_
BINARIES)
$(MKINSTALLDIRS)
$(bindir)
$(INSTALL_PROGRAM)
wine-kthread
$(bindir)
/wine-kthread
$(INSTALL_PROGRAM)
wine-pthread
$(bindir)
/wine-pthread
cd
$(bindir)
&&
$(RM)
$(MODULE)
&&
$(LN_S)
$(MAIN_BINARY)
$(MODULE)
for
f
in
$(WINE_BINARIES)
;
do
\
if
[
"
$(MAIN_BINARY)
"
=
"
$$
f"
]
;
\
then
$(INSTALL_PROGRAM)
$$
f
$(bindir)
/
$(MODULE)
;
\
else
$(INSTALL_PROGRAM)
$$
f
$(bindir)
/
$$
f
;
\
fi
;
\
done
uninstall
::
$(RM)
$
(
BINARIES:%
=
$(bindir)
/%
)
$(bindir)
/
$(MODULE)
$(RM)
$
(
WINE_
BINARIES:%
=
$(bindir)
/%
)
$(bindir)
/
$(MODULE)
clean
::
$(RM)
$(BINARIES)
$(MODULE)
$(RM)
$(
WINE_
BINARIES)
$(MODULE)
### Dependencies:
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