Commit graph

32 commits

Author SHA1 Message Date
Fabrice Fontaine
f53c0956d4 ympd is implemented only in C
By default, CMake assumes that the project is using both C and C++. By
explicitly passing 'C' as argument of the project() macro, we tell
CMake that only C is used, which prevents CMake from checking if a C++
compiler exists.

Patch applied to buildroot since 2014:
https://git.buildroot.net/buildroot/commit/package/ympd?id=40aa523af26963321443a2d96c64ce128577ca77

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2018-03-08 18:02:26 +01:00
azrdev
c1f1adbc28 Don't overwrite CFLAGS
Preserve user/system-configured C_FLAGS.

This broke the rpm package build on fedora: They enable a hardened config (i.e. ASLR) by default, which adds -pie and -fPIC to linker and compiler flags. Overwriting C_FLAGS removed the compiler spec, but not the linker one, leading to an error like:

/bin/cc  -std=gnu99 -Wall -ggdb -pedantic  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld CMakeFiles/mkdata.dir/tools/mkdata.c.o  -o mkdata -rdynamic 
bin/ld: CMakeFiles/mkdata.dir/tools/mkdata.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
CMakeFiles/mkdata.dir/tools/mkdata.c.o: error adding symbols: Bad value

With this fix, the error is gone:

/bin/cc  -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -std=gnu99 -Wall -g -ggdb -pedantic  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld CMakeFiles/mkdata.dir/tools/mkdata.c.o  -o mkdata -rdynamic
2017-05-14 07:37:46 +02:00
Andrew Karpow
0059a6dd41 removed minified files, minifing should be part of build process 2016-02-13 21:58:43 +01:00
SuperBFG7
00e58b0fe0 compile mongoose with SSL support 2015-09-27 14:33:37 +02:00
Andrew Karpow
3701a8510b add libmpdclient header location to gcc-search path, fixes openbsd builds 2015-04-24 23:38:39 +02:00
Andrew Karpow
e6e93a08c7 release build now installs assets to prefix
if build with dynamic assets
2014-11-11 21:13:11 +01:00
Andrew Karpow
dc15e3b0d7 add WITH_DYNAMIC_SERVING for theme developing 2014-10-27 22:12:10 +01:00
Andrew Karpow
2b5a4c6fa0 added mkdata.pl generator for cross-compiling, fixes #31 2014-10-19 22:58:03 +02:00
Andrew Karpow
912140c96c prepare for 1.2.3 release 2014-10-19 20:29:30 +02:00
Andrew Karpow
aa60cb8991 upgraded to mongoose 5.4, introducing ipv6 support 2014-10-19 19:52:23 +02:00
Andrew Karpow
5fd723c1db fixed CMake warning CMP0026 2014-10-19 16:35:16 +02:00
Andrew Karpow
a70d87f7c7 bumped version to 1.2.2 2014-05-09 14:10:14 +02:00
Andrew Karpow
3751c6ad98 release 1.2.1 2014-03-31 17:55:40 +02:00
Andrew Karpow
409150933d added mkdata dependency properly, fixes #7 2014-03-18 04:01:39 +01:00
Andrew Karpow
b75dadf7a9 removed perl generator, added c generator 2014-03-08 20:32:54 +01:00
Andrew Karpow
b9a4d83130 better json generator, various fixups 2014-03-08 12:30:49 +01:00
Andrew Karpow
38b4544542 replaces libwebsockets with mongoose, changed licese to gpl
add search support
add playlist support
various fixups
C Cleanup
2014-03-08 12:30:49 +01:00
Andrew Karpow
79e38e7edd initial mongoose checkin 2014-03-08 12:30:48 +01:00
Andrew Karpow
8c49b2a877 add settings modal dialog 2014-03-08 12:30:48 +01:00
Andrew Karpow
a9c907d6b1 remove installation of debian-specific init.d script 2014-03-08 12:30:48 +01:00
Andrew Karpow
a4f9789a31 add libwebsockets include directory to global include path 2014-01-21 00:38:42 +01:00
Andrew Karpow
8c42ba2d7e changed Version to 1.0.0 2014-01-17 19:44:13 +01:00
Andrew Karpow
51a59a111e fixed man page install path 2014-01-17 19:41:19 +01:00
Andrew Karpow
9212e3af29 removed init-config, changed default webport to 80 2014-01-17 19:03:15 +01:00
Andrew Karpow
13b921553f init.d script are installed by default now 2014-01-12 20:16:07 +01:00
Nico Suhl
6694e752bc removed newline to fix package build 2014-01-10 20:50:55 +01:00
Andrew Karpow
6d341cdf69 update CMakeLists.txt, add compiletime generated config 2014-01-08 02:22:05 +01:00
Andrew Karpow
38f5009140 fixed firefox websocket bug, added assets 2013-12-03 21:48:49 +01:00
Andrew Karpow
6d16ec2823 various layout fixups 2013-11-13 15:30:54 +01:00
Andrew Karpow
338b27676c add debian package information and initscripts 2013-11-12 02:54:00 +01:00
Andrew Karpow
062810144c removes old Makefile, reindent, fixups 2013-11-09 02:07:03 +01:00
Andrew Karpow
6a4e1301a8 add workng cmake build enviroment 2013-11-08 23:32:07 +01:00