Michael Schröder
7481dd3084
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=552
34 lines
1016 B
Diff
34 lines
1016 B
Diff
--- ./lib/rpmrc.c.orig 2020-09-30 07:48:01.215567727 +0000
|
|
+++ ./lib/rpmrc.c 2020-09-30 12:22:46.612692258 +0000
|
|
@@ -78,10 +78,12 @@ struct rpmOption {
|
|
int localize;
|
|
};
|
|
|
|
+#if defined(__linux__) && (defined(__powerpc__) || defined(__sparc__) || (defined(__arm__) && defined(__ARM_PCS_VFP)))
|
|
static struct rpmat_s {
|
|
const char *platform;
|
|
uint64_t hwcap;
|
|
} rpmat;
|
|
+#endif
|
|
|
|
typedef struct defaultEntry_s {
|
|
char * name;
|
|
@@ -948,7 +950,7 @@ static int is_geode(void)
|
|
#endif
|
|
|
|
|
|
-#if defined(__linux__)
|
|
+#if defined(__linux__) && (defined(__powerpc__) || defined(__sparc__) || (defined(__arm__) && defined(__ARM_PCS_VFP)))
|
|
/**
|
|
* Populate rpmat structure with auxv values
|
|
*/
|
|
@@ -1004,7 +1006,7 @@ static void defaultMachine(rpmrcCtx ctx,
|
|
canonEntry canon;
|
|
int rc;
|
|
|
|
-#if defined(__linux__)
|
|
+#if defined(__linux__) && (defined(__powerpc__) || defined(__sparc__) || (defined(__arm__) && defined(__ARM_PCS_VFP)))
|
|
/* Populate rpmat struct with hw info */
|
|
read_auxv();
|
|
#endif
|