Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a710e767
Commit
a710e767
authored
Nov 26, 2009
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix universal binaries build on OSX, in case both 32 and 64 bit architectures are used
parent
eb4656e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
9 deletions
+29
-9
config.h.cmake
config.h.cmake
+23
-6
configure.cmake
configure.cmake
+6
-3
No files found.
config.h.cmake
View file @
a710e767
...
...
@@ -293,7 +293,29 @@
# define HAVE_CHAR 1
#endif
#cmakedefine SIZEOF_CHARP @SIZEOF_CHARP@
#ifdef __APPLE__
/*
Special handling required for OSX to support universal binaries that
mix 32 and 64 bit architectures.
*/
#if(__LP64__)
#define SIZEOF_LONG 8
#else
#define SIZEOF_LONG 4
#endif
#define SIZEOF_CHARP SIZEOF_LONG
#define SIZEOF_SIZE_T SIZEOF_LONG
#else
#cmakedefine SIZEOF_LONG @SIZEOF_LONG@
#cmakedefine SIZEOF_CHARP @SIZEOF_CHARP@
#cmakedefine SIZEOF_SIZE_T @SIZEOF_CHARP@
#endif
#if SIZEOF_LONG
# define HAVE_LONG 1
#endif
#if SIZEOF_CHARP
#define HAVE_CHARP 1
#define SIZEOF_VOIDP SIZEOF_CHARP
...
...
@@ -309,10 +331,6 @@
# define HAVE_INT 1
#endif
#cmakedefine SIZEOF_LONG @SIZEOF_LONG@
#if SIZEOF_LONG
# define HAVE_LONG 1
#endif
#cmakedefine SIZEOF_LONG_LONG @SIZEOF_LONG_LONG@
#if SIZEOF_LONG_LONG
...
...
@@ -329,7 +347,6 @@
#define HAVE_SIGSET_T 1
#endif
#cmakedefine SIZEOF_SIZE_T @SIZEOF_SIZE_T@
#if SIZEOF_SIZE_T
#define HAVE_SIZE_T 1
#endif
...
...
configure.cmake
View file @
a710e767
...
...
@@ -687,14 +687,17 @@ ENDIF()
IF
(
HAVE_STDINT_H
)
SET
(
CMAKE_EXTRA_INCLUDE_FILES stdint.h
)
ENDIF
(
HAVE_STDINT_H
)
IF
(
NOT APPLE
)
CHECK_TYPE_SIZE
(
"char *"
SIZEOF_CHARP
)
CHECK_TYPE_SIZE
(
long SIZEOF_LONG
)
CHECK_TYPE_SIZE
(
size_t SIZEOF_SIZE_T
)
ENDIF
()
CHECK_TYPE_SIZE
(
char SIZEOF_CHAR
)
CHECK_TYPE_SIZE
(
"char *"
SIZEOF_CHARP
)
CHECK_TYPE_SIZE
(
short SIZEOF_SHORT
)
CHECK_TYPE_SIZE
(
int SIZEOF_INT
)
CHECK_TYPE_SIZE
(
long SIZEOF_LONG
)
CHECK_TYPE_SIZE
(
"long long"
SIZEOF_LONG_LONG
)
SET
(
CMAKE_EXTRA_INCLUDE_FILES stdio.h
)
CHECK_TYPE_SIZE
(
size_t SIZEOF_SIZE_T
)
SET
(
CMAKE_EXTRA_INCLUDE_FILES sys/types.h
)
CHECK_TYPE_SIZE
(
off_t SIZEOF_OFF_T
)
CHECK_TYPE_SIZE
(
uchar SIZEOF_UCHAR
)
...
...
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