Skip to content

Commit

Permalink
Add a hack to build_detect_platform so it works in all types of fb-se…
Browse files Browse the repository at this point in the history
…rvers
  • Loading branch information
Kai Liu committed Jan 5, 2014
1 parent 463086b commit 8f6e319
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build_tools/build_detect_platform
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ echo "MEMENV_SOURCES=helpers/memenv/memenv.cc" >> $OUTPUT
if [ "$CROSS_COMPILE" = "true" -o "$FBCODE_BUILD" = "true" ]; then
# Cross-compiling; do not try any compilation tests.
# Also don't need any compilation tests if compiling on fbcode
true
# TODO(kailiu) For some fb-supported environments, they have trouble finding
# symbols from gflags if -lgflags wasn't specified. As a temporary resort,
# we added it to PLATFORM_LDFLAGS although for some environments it is
# unnecessary.
PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -gflags"
else
# do fPIC on 64 bit in non-fbcode environment
case "$TARGET_OS" in
Expand Down

0 comments on commit 8f6e319

Please sign in to comment.