Skip to contentSkip to conversation

libselinux fails to build on mips and mipsel machines, patch included

PATCH Manoj Srivastava 2 participants 2 messages Nov 16, 2004 – Nov 30, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

The asm syntax on mips and mipsel machines is similar to that
of the alphas, so the following patch is required to have libselinux build on mips machines.

======================================================================

src/dso.h +1 -1
@@ -7,7 +7,7 @@
 # define __hidden_proto(fct, internal)	\
      extern __typeof (fct) internal;	\
      extern __typeof (fct) fct __asm (#internal) hidden;
-# ifdef __alpha__
+# if defined(__alpha__) || defined(__mips__)
 #  define hidden_def(fct) \
      asm (".globl " #fct "\n" #fct " = " #fct "_internal");
 # else

======================================================================

manoj

Signature · 8 lines
Do, or do not; there is no try.
Manoj Srivastava   <[email protected]>    <[email protected]> 
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 3 lines · Manoj Srivastava

The asm syntax on mips and mipsel machines is similar to that
of the alphas, so the following patch is required to have libselinux build on mips machines.

Thanks, merged.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.