Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
b487287d
Commit
b487287d
authored
Jun 24, 2016
by
Matthew Brett
Browse files
Make it possible to override default CFLAGS, FFLAGS
parent
6ae6d742
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
library_builders.sh
library_builders.sh
+6
-2
No files found.
library_builders.sh
View file @
b487287d
...
@@ -18,10 +18,14 @@ LIBAEC_VERSION="${LIBAEC_VERSION:-0.3.3}"
...
@@ -18,10 +18,14 @@ LIBAEC_VERSION="${LIBAEC_VERSION:-0.3.3}"
BUILD_PREFIX
=
"
${
BUILD_PREFIX
:-
/usr/local
}
"
BUILD_PREFIX
=
"
${
BUILD_PREFIX
:-
/usr/local
}
"
ARCHIVE_SDIR
=
${
ARCHIVE_DIR
:-
archives
}
ARCHIVE_SDIR
=
${
ARCHIVE_DIR
:-
archives
}
# Set default
s
# Set default
compilation flags and OSX flag variable
if
[
$(
uname
)
==
"Darwin"
]
;
then
if
[
$(
uname
)
==
"Darwin"
]
;
then
# Dual arch build by default
ARCH_FLAGS
=
${
ARCH_FLAGS
:-
"-arch i386 -arch x86_64"
}
ARCH_FLAGS
=
${
ARCH_FLAGS
:-
"-arch i386 -arch x86_64"
}
export
CFLAGS
=
"
${
CFLAGS
}
$ARCH_FLAGS
"
# Only set CFLAGS, FFLAGS if they are not already defined. Build functions
# can override the arch flags by setting CFLAGS, FFLAGS
export
CFLAGS
=
"
${
CFLAGS
:-
$ARCH_FLAGS
}
"
export
FFLAGS
=
"
${
FFLAGS
:-
$ARCH_FLAGS
}
"
IS_OSX
=
1
IS_OSX
=
1
fi
fi
...
...
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