[llvm-commits] [dragonegg] r128408 - /dragonegg/trunk/freebsd/OS.h
Duncan Sands
baldrick at free.fr
Mon Mar 28 08:04:33 PDT 2011
Author: baldrick
Date: Mon Mar 28 10:04:33 2011
New Revision: 128408
URL: http://llvm.org/viewvc/llvm-project?rev=128408&view=rev
Log:
It seems that freebsd has heard of PIC :) Patch by "dim".
Modified:
dragonegg/trunk/freebsd/OS.h
Modified: dragonegg/trunk/freebsd/OS.h
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/freebsd/OS.h?rev=128408&r1=128407&r2=128408&view=diff
==============================================================================
--- dragonegg/trunk/freebsd/OS.h (original)
+++ dragonegg/trunk/freebsd/OS.h Mon Mar 28 10:04:33 2011
@@ -23,4 +23,11 @@
#ifndef DRAGONEGG_OS_H
#define DRAGONEGG_OS_H
+/* Yes, we support PIC codegen for FreeBSD targets! */
+#define LLVM_SET_TARGET_OPTIONS(argvec) \
+ if (flag_pic) \
+ argvec.push_back ("--relocation-model=pic"); \
+ else \
+ argvec.push_back ("--relocation-model=static");
+
#endif /* DRAGONEGG_OS_H */
More information about the llvm-commits
mailing list