Chris Johns commented: 
https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/66#note_135342


This patch lets the build complete:

```diff
diff --git a/libbsd.py b/libbsd.py
index e481ffe1..daf02227 100644
--- a/libbsd.py
+++ b/libbsd.py
@@ -54,7 +54,7 @@ _defaults = {
     'common-warnings' : ['-Wall',
                          '-Wno-format',
                          '-Wno-pointer-sign'],
-    'common-no-warnings': ['-w'],
+    'common-no-warnings': ['-w', '-Wno-implicit-function-declaration'],
     'cflags': [],
     'cxxflags': [],
```

however is breaks C++ files:

```
cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is 
valid for C/ObjC but not for C++
```

It seems we need to now add C and C++ common flags and separate the sources.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/66#note_135342
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to