Skip to content

Commit 6da26b4

Browse files
committed
Added creation of lowfat.o in build.sh for linking with dynamo-lowfat
1 parent 737f550 commit 6da26b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ build_llvm()
102102
-DLOWFAT_NO_REPLACE_STD_MALLOC -fPIC -shared \
103103
-o liblowfat.so -std=gnu99 -m64 "-I$PWD/${RUNTIME_PATH}/" \
104104
-DLOWFAT_LINUX -O2 $STANDALONE_OPTS "$PWD/${RUNTIME_PATH}/lowfat.c"
105+
echo -e "${GREEN}$0${OFF}: creating lowfat.o for linking with dynamo-lowfat ..."
106+
$CLANG -D_GNU_SOURCE -DLOWFAT_STANDALONE \
107+
-DLOWFAT_NO_REPLACE_STD_MALLOC -c -fPIC \
108+
-o lowfat.o -std=gnu99 -m64 "-I$PWD/${RUNTIME_PATH}/" \
109+
-DLOWFAT_LINUX -O2 $STANDALONE_OPTS "$PWD/${RUNTIME_PATH}/lowfat.c"
105110
fi
106111

107112
echo -e "${GREEN}$0${OFF}: cleaning up the LowFat config files..."

0 commit comments

Comments
 (0)