Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
eec2e855
Commit
eec2e855
authored
Oct 24, 2016
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pthread detection to configure.ac to get cflags and libs right
parent
392135c7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
495 additions
and
2 deletions
+495
-2
configure.ac
configure.ac
+9
-1
ax_pthread.m4
m4/ax_pthread.m4
+485
-0
Makefile.am
src/Makefile.am
+1
-1
No files found.
configure.ac
View file @
eec2e855
...
...
@@ -70,6 +70,12 @@ case ${host_os} in
esac
AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
# if we are not on win32, check for pthread
if test x"$win32" != x"true"; then
AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build libplist])])
AC_CHECK_LIB(pthread, [pthread_once], [], [AC_MSG_ERROR([pthread with pthread_once required to build libplist])])
fi
# Check if struct tm has a tm_gmtoff member
AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
AC_TRY_COMPILE([
...
...
@@ -130,7 +136,8 @@ fi
AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON_SUB" = "xcython"])
AC_SUBST([CYTHON_SUB])
AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden")
AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden $PTHREAD_CFLAGS")
GLOBAL_LDFLAGS="$PTHREAD_LIBS"
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],
...
...
@@ -148,6 +155,7 @@ if (test "x$debug" = "xyes"); then
fi
AC_SUBST(GLOBAL_CFLAGS)
AC_SUBST(GLOBAL_LDFLAGS)
case "$GLOBAL_CFLAGS" in
*-fvisibility=hidden*)
...
...
m4/ax_pthread.m4
0 → 100644
View file @
eec2e855
This diff is collapsed.
Click to expand it.
src/Makefile.am
View file @
eec2e855
AM_CPPFLAGS
=
-I
$(top_srcdir)
/include
-I
$(top_srcdir)
-I
$(top_srcdir)
/libcnary/include
AM_CFLAGS
=
$(GLOBAL_CFLAGS)
AM_LDFLAGS
=
AM_LDFLAGS
=
$(GLOBAL_LDFLAGS)
lib_LTLIBRARIES
=
libplist.la libplist++.la
libplist_la_LIBADD
=
$(top_builddir)
/libcnary/libcnary.la
...
...
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