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
3093ea05
Commit
3093ea05
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
ac0b2048
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 @
3093ea05
...
@@ -293,7 +293,29 @@
...
@@ -293,7 +293,29 @@
# define HAVE_CHAR 1
# define HAVE_CHAR 1
#endif
#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
#if SIZEOF_CHARP
#define HAVE_CHARP 1
#define HAVE_CHARP 1
#define SIZEOF_VOIDP SIZEOF_CHARP
#define SIZEOF_VOIDP SIZEOF_CHARP
...
@@ -309,10 +331,6 @@
...
@@ -309,10 +331,6 @@
# define HAVE_INT 1
# define HAVE_INT 1
#endif
#endif
#cmakedefine SIZEOF_LONG @SIZEOF_LONG@
#if SIZEOF_LONG
# define HAVE_LONG 1
#endif
#cmakedefine SIZEOF_LONG_LONG @SIZEOF_LONG_LONG@
#cmakedefine SIZEOF_LONG_LONG @SIZEOF_LONG_LONG@
#if SIZEOF_LONG_LONG
#if SIZEOF_LONG_LONG
...
@@ -329,7 +347,6 @@
...
@@ -329,7 +347,6 @@
#define HAVE_SIGSET_T 1
#define HAVE_SIGSET_T 1
#endif
#endif
#cmakedefine SIZEOF_SIZE_T @SIZEOF_SIZE_T@
#if SIZEOF_SIZE_T
#if SIZEOF_SIZE_T
#define HAVE_SIZE_T 1
#define HAVE_SIZE_T 1
#endif
#endif
...
...
configure.cmake
View file @
3093ea05
...
@@ -687,14 +687,17 @@ ENDIF()
...
@@ -687,14 +687,17 @@ ENDIF()
IF
(
HAVE_STDINT_H
)
IF
(
HAVE_STDINT_H
)
SET
(
CMAKE_EXTRA_INCLUDE_FILES stdint.h
)
SET
(
CMAKE_EXTRA_INCLUDE_FILES stdint.h
)
ENDIF
(
HAVE_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_CHAR
)
CHECK_TYPE_SIZE
(
"char *"
SIZEOF_CHARP
)
CHECK_TYPE_SIZE
(
short SIZEOF_SHORT
)
CHECK_TYPE_SIZE
(
short SIZEOF_SHORT
)
CHECK_TYPE_SIZE
(
int SIZEOF_INT
)
CHECK_TYPE_SIZE
(
int SIZEOF_INT
)
CHECK_TYPE_SIZE
(
long SIZEOF_LONG
)
CHECK_TYPE_SIZE
(
"long long"
SIZEOF_LONG_LONG
)
CHECK_TYPE_SIZE
(
"long long"
SIZEOF_LONG_LONG
)
SET
(
CMAKE_EXTRA_INCLUDE_FILES stdio.h
)
SET
(
CMAKE_EXTRA_INCLUDE_FILES stdio.h
)
CHECK_TYPE_SIZE
(
size_t SIZEOF_SIZE_T
)
SET
(
CMAKE_EXTRA_INCLUDE_FILES sys/types.h
)
SET
(
CMAKE_EXTRA_INCLUDE_FILES sys/types.h
)
CHECK_TYPE_SIZE
(
off_t SIZEOF_OFF_T
)
CHECK_TYPE_SIZE
(
off_t SIZEOF_OFF_T
)
CHECK_TYPE_SIZE
(
uchar SIZEOF_UCHAR
)
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